I have a doubt how to pass the Variable $ info_pago of a controller to be used in the checkout view and how to work on it. Controller:
$info_pago = [
'merchantId' => "508029",
'accountId' =>'512321',
'description' => 'Online Store',
'referenceCode' => $reference_code,
'amount' => Cart::total(),
'signature'=> md5($api_key."~"."508029"."~"."XXXX01"."~". Cart::total() )
];
return view('checkout', ['info_pago' => $info_pago ]);
I do not know how to use it for a form in the view, I thought something like this...
<input name="merchantId" type="hidden" value="" >
<input name="accountId" type="hidden" value="" >
<input name="description" type="hidden" value="" >
<input name="referenceCode" type="hidden" value="" >
<input name="amount" type="hidden" value="" >
I appreciate your suggestions.. TY..
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire