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.
With Laravel 7, default same_site setting in
config/sesstion.php
is changed tolax
, by defaultlax
andstrict
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.