#comers
1 messages · Page 1 of 1 (latest)
You mean the {CHECKOUT_SESSION_ID} variable? What was the actual success_url you were redirected to?
What's the cs_xxx ID?
Hi! We use jsessionid which is a cookie generated by our server to maintain session. We put them in successl_url so our server can identify session when a payment is completed, an example of url looks like this: "https://iframebb2.comers.se/pages/alias.logic.ConfirmPaidBookingStripe.action;jsessionid=BDADB0832B4B488DE9B20FBB5F010F22?stripePaymentId=84652779-e690-4012-9694-f2f9460aed91". It seems the jsessionid part is not present when it reaches to us.
Again, an example Checkout Session would be helpful
the example above is from session with session id: cs_live_a19LjoUz2qAb0sq4Ya9WrnhgqrDVKOMayKVMWv89hIVNMRC2WBDZHw3AiH
And what's the actual success_url that Checkout redirects you to?
Can you try passing it as a URL paream instead? i.e. https://iframebb2.comers.se/pages/alias.logic.ConfirmPaidBookingStripe.action?jsessionid=BDADB0832B4B488DE9B20FBB5F010F22&stripePaymentId=84652779-e690-4012-9694-f2f9460aed91
Is the jsessionid part removed when Stripe sends the callback? If so then we might have to implement it as you suggested
That would be my guess, yes. If you can just try what I suggested to confirm that theory
(looking internally)
ok! I'll see what I can do, thank you for your help!
My assumption is this is actually a browser behaviour, not specific to Stripe
We seemingly just do a window.location.assign()
Ok, then it might be the cause of the problem. Actually our system which triggers payment in Stripe is embedded as an iframe. we have encountered problems in following scenario: User completes purchase A(with sessionId A), and then comes back to make another purchase B(with session B), but since the jsessionid is not present in callback, user is then recognized as session A, which isn't a valid session anymore. So I think your suggestion should work.
One last question, when we start a payment in iframe, the parent page is navigated to Stripe, is there a way to only reload iframe page?
I'll be honest, I'm surprised you can even use Checkout in an iframe
It's not supported, so likely explains the behaviour you're describing
hmm ok, so the correct way is to redirect to payment page from server according to this documentation https://stripe.com/docs/checkout/quickstart?lang=java
Yes, that's the default integration (recommended) path
ok now I know what I should do, thank you so much!