We are facing issue sporadically when handshaking from gateway receipt page to application.
We are using Simple checkout form to capture the payment.
My application registration steps:
1. In the registration process we're saving registration page info in session and redirecting to payment gateway for payment.
2. After the payment, gateway receipt page will submit the payment response to our server page.
3. SafetyNet server will get the registration info from the saved session and complete the registration process.
Issue: When payment response submit from browser, saved session is not able to retrieve as it is creating new session and not able complete the registration process.
*From the application logs:
- We find that session ids are different before redirecting to gateway and after returning from payment receipt page.
- Below is the log snippet
05:34:22,080 INFO RegistrationController:67 - request.getSession().getId() = 3tPf99MnOjCHQyf8RsTLp3h
05:34:22,081 INFO RegistrationController:69 - startpay() - Stored registration page info in session - is new session true
05:35:03,550 INFO RegistrationController:82 - processPay() -- Started!
05:35:03,551 INFO RegistrationController:83 - request.getSession().getId() = AlmCt-EFOtz-5IWiu1gTAp0
05:35:03,633 INFO RegistrationController:99 - Payment info has been saved succesfully!
05:35:03,633 INFO RegistrationController:124 - processPay() -- End!
*Our app URL : https://myapp.company.com/registration/register
*Authorize.net settings, Default Receipt URL: http://myapp.company.com/registration/processPay
Can you please guide us what went wrong our setup.
Thanks in advance !
It's been a while since this was first posted. I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.