Laravel walata payhere payment gateway checkout api eka integration karapu kenek innawada?
Mama mulinma checkout ekdi payhere checkout click karaham products data controller eken db eke payhere table ekata save karanawa, ita passe controller eken return redirect karanawa
//up more codes for db and etc
$post = array(
'merchant_id' => '1213296',
'return_url' => 'http://kali/return',
'cancel_url' => 'http://kali/cancel',
'notify_url' => 'http://kali/notify',
'order_id' => 'ItemNo12345',
'items' => 'Door bell wireless',
'currency' => 'LKR',
'amount' => '1000',
'first_name' => 'Saman',
'last_name' => 'Perera',
'email' => '[email protected]',
'phone' => '0771234567',
'address' => 'No.1, Galle Road',
'city' => 'Colombo',
'country' => 'Sri Lanka'
);
return redirect('https://sandbox.payhere.lk/pay/checkout')->with('post', $post);
data db ekata gihilla sandbox url ekata redirect wenawa but sandbox ekedi man pass karana data mukut gahanne na merchant error enawa