tzsk / payu

Payu Laravel Payment Gateway with Payment Verification Package. Payment for Payu Biz & PayuMoney India with Laravel.
https://payu.tzskr.com
MIT License
48 stars 31 forks source link

419 Page Expired when using live payment #261

Closed surajitbasak109 closed 2 years ago

surajitbasak109 commented 2 years ago

Hi, I am getting 419 Page expired when I made a payment from PayUMoney. It is making a post request to /tzsk/payment/success?_token which is:

Domain Method URI Name Action Middleware
POST tzsk/payment/{status} tzsk.payu.payment.status Tzsk\Payu\Controllers\PaymentController@payment Web

I don't know why it is throwing 419|Page expired error. Can you please tell me why?

Currently I am using Laravel v6 and this package "tzsk/payu": "4.0.1".

surajitbasak109 commented 2 years ago

Okay, I have figured it out. After adding the route name in except array from VerifyCsrfToken middleware, it has been fixed.

protected $except = [
        'tzsk/payment/{status}'
];