How can I send 3-4 custom fields to paytm and get them back with response, i tried with below code to send some userdata in userinfo variable.
$payment->prepare([ 'order' => $id, // your order id taken from cart 'user' => Auth::user()->id, // your user id 'mobile_number' => $mobile, // your customer mobile no 'email' => $email, // your user email address 'amount' => $request['amount'], // amount will be paid in INR. "userInfo" => array( "custId" => Auth::user()->id, ), 'callback_url' => url('/').$callback // callback URL ]);
How can I send 3-4 custom fields to paytm and get them back with response, i tried with below code to send some userdata in userinfo variable.
$payment->prepare([ 'order' => $id, // your order id taken from cart 'user' => Auth::user()->id, // your user id 'mobile_number' => $mobile, // your customer mobile no 'email' => $email, // your user email address 'amount' => $request['amount'], // amount will be paid in INR. "userInfo" => array( "custId" => Auth::user()->id, ), 'callback_url' => url('/').$callback // callback URL ]);