I have configured Cybersource as my payment gateway, I am able to navigate to cybersource and make a payment and able to redirect back to the site successfully. Also i am able to Cancel the payment and redirect back to my website.
Im getting the response from the payment gateway. But, user is getting logged out on redirecting back from the payment gateway.
Tho im able to re-login the user based on TransactionID. I want to make sure the user session is not lost and the user remain logged in.
Thank you in advance!
The issue is because of your cookie same-site configuration. You should use SameSite=None on your cookies attributes. Also if you use SameSite=None you should set the secure cookies attribute as well.