anandsiddharth / laravel-paytm-wallet

Integrate paytm wallet in your laravel application easily with this package. This package uses official Paytm PHP SDK's.
MIT License
92 stars 40 forks source link

Laravel extra parameters #51

Closed akhiidwandhare closed 4 years ago

akhiidwandhare commented 4 years ago

Hey Buddy, I want to add some more extra parameters. Please guide me.

anandsiddharth commented 4 years ago

what parameters and where?

akhiidwandhare commented 4 years ago

I want to pass more parameters. like user name, provider id etc..

anandsiddharth commented 4 years ago

Please provide a minimum line of code to understand the issue, (the part where you integrate this package).

akhiidwandhare commented 4 years ago

$payment = PaytmWallet::with('receive'); $payment->prepare([ 'order' => $order->id, 'user' => $user->id, 'mobile_number' => $user->phonenumber, 'email' => $user->email, 'amount' => $order->amount, 'callback_url' => 'http://example.com/payment/status', 'pro_id' => $id, //I want to add something like this ]); return $payment->receive();

anandsiddharth commented 4 years ago

No, you can't do that, because Paytm doesn't support that and there is no point in doing that because you have your own database, you can store it on your database or query from your database id already have it keeping order id as your reference.