Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send custom values? #59

Open
arunk9034 opened this issue Sep 27, 2020 · 0 comments
Open

How to send custom values? #59

arunk9034 opened this issue Sep 27, 2020 · 0 comments

Comments

@arunk9034
Copy link

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 ]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant