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
93 stars 42 forks source link

Readme updated with Laravel 7 same_site instruction #50

Closed rscipher001 closed 4 years ago

rscipher001 commented 4 years ago

With Laravel 7, default same_site setting in config/sesstion.php is changed to lax, by default lax and strict cookies are not sent when a post request is made by a third party domain, PayTM makes a post request on payment completion and that request doesn't include cookies so Laravel sends new cookies on response assuming you're a guest user so user end up logged out when a payment is completed. I have only included instructions in README to update sessions setting to null, if you have a better way to do this than feel free to reject this PR.