shetabit / payment

simple laravel payment package , supports multiple drivers
MIT License
845 stars 142 forks source link

Payment::callbackUrl not working correctly #198

Open Nimaw opened 3 years ago

Nimaw commented 3 years ago

Hello dear Support,

return Payment::callbackUrl(route('user.orders.payment.result', ['orderNumber' => $this->order->unicode]))->via('zarinpal')->purchase( (new invoice)->amount($this->order->price), function ($driver, $transactionId) { // Some codes... } )->pay()->render();

I this case callbackUrl not working and redirect to another URL after payment finished.

Best, Nima.

khanzadimahdi commented 3 years ago

Hi, please fix it and send pull request.