test mercado pago
Showing
... | @@ -399,18 +399,14 @@ public function shipping() | ... | @@ -399,18 +399,14 @@ public function shipping() |
$detail = $detail." Envio ". $addres->shipping_price->name ." $". $addres->shipping_price->cost .".00"; | $detail = $detail." Envio ". $addres->shipping_price->name ." $". $addres->shipping_price->cost .".00"; | ||
$mp = new MP(env('AC_MERCADO_PAGO')); | $mp = new MP('TEST-7957752184054483-101318-9bbc7ef53f975318d2521f05257cb66a__LB_LC__-60150825'); | ||
$payment_data = array( | $payment_data = array( | ||
"transaction_amount" => $this->total() + $addres->shipping_price->cost, | "transaction_amount" => 100, | ||
"description" => "Title of what you are paying for", | |||
"description" => $detail, | "payment_method_id" => "oxxo", | ||
"payment_method_id" => $request->payment_id, | |||
"payer" => array ( | "payer" => array ( | ||
"email" => $client->email, | "email" => "[email protected]" | ||
"first_name"=>$client->name, | |||
"last_name"=>$client->lastname | |||
) | ) | ||
); | ); | ||
... | ... |
Please
register
or
sign in
to comment