Hello, so we're integrating an online payment gateway with our site, and the way it's requests are structured are very similar to Paypal, so we patterned our integration on that.
However, as we're testing right now on a sandbox account, for some reason, sometimes upon approval of the payment, and redirection to checkout.complete, we get logged out of our account. However the other payment gateways still work fine, it doesn't happen to them.
We've debugged a bit, and when it gets to the payment.notification.approval dispatch we're still logged in. However, after redirecting to checkout.complete we're already logged out. Could it be an issue with something in fn_distpach() or fn_redirect?
If anyone has had this problem and has resolved it, a point in the right direction would be greatly appreciated, thanks!