I am trying to integration Jazzcash in my Laravel Project. Whenever i try to do checkout it redirect to Jazzcash Payment page but before page load it redirect me back to my return URL with 419 Page expired while all of my parameters got success in API log inside Jazzcash Sandbox account but Payment got failed.
Callback url is a post
request coming from Jazzcash. Since every laravel post request require csrf
token it will throw 419 error because that request will not contain any token. So to ignore token for that particular url you need to add that url in VerifyCsrfToken.php
middleware.
In file add that route in $except
array.
protected $except = [
'name-of-your-route'
];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.