-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I had integrated paytm with your package and it was working fine when integrated with test API key, but when I changed the API key from test to production it is giving me invalid checksum laravel page error. Below is the code I had used
$uuid = Str::uuid()->toString();
$payment = PaytmWallet::with('receive');
$payment->prepare([
'order' => $uuid,
'user' => $order->user_id,
'mobile_number' => $order->phone,
'email' => $order->email,
'amount' => $order->total,
'callback_url' => route('payment.callback'),
]);
return $payment->receive();
And for callback function used below code
$transaction = PaytmWallet::with('receive');
$response = $transaction->response();
if($transaction->isSuccessful()){
//Transaction Successful
return view("pages.payments.success",compact("layout"));
}else if($transaction->isFailed()){
//Transaction Failed
return view("pages.payments.failed",compact("layout"));
}else if($transaction->isOpen()){
//Transaction Open/Processing
return view("pages.payments.failed",compact("layout"));
}
riyandharne-123, KingOfNoobs and kaydee123
Metadata
Metadata
Assignees
Labels
No labels