#comers

1 messages · Page 1 of 1 (latest)

unreal sigilBOT
toxic dawn
#

You mean the {CHECKOUT_SESSION_ID} variable? What was the actual success_url you were redirected to?

#

What's the cs_xxx ID?

manic crow
toxic dawn
#

Again, an example Checkout Session would be helpful

manic crow
#

the example above is from session with session id: cs_live_a19LjoUz2qAb0sq4Ya9WrnhgqrDVKOMayKVMWv89hIVNMRC2WBDZHw3AiH

toxic dawn
#

And what's the actual success_url that Checkout redirects you to?

toxic dawn
#

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

manic crow
#

Is the jsessionid part removed when Stripe sends the callback? If so then we might have to implement it as you suggested

toxic dawn
#

That would be my guess, yes. If you can just try what I suggested to confirm that theory

#

(looking internally)

manic crow
#

ok! I'll see what I can do, thank you for your help!

toxic dawn
#

My assumption is this is actually a browser behaviour, not specific to Stripe

#

We seemingly just do a window.location.assign()

manic crow
#

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?

toxic dawn
#

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

manic crow
toxic dawn
#

Yes, that's the default integration (recommended) path

manic crow
#

ok now I know what I should do, thank you so much!