#wellthen ๐Ÿ‡ช๐Ÿ‡บ

1 messages ยท Page 1 of 1 (latest)

terse pollenBOT
silk grail
#

Yeah that's correct

pure idol
#

so there's no need for me to do additional checks on the returned data?

#

assuming only card and klarna are enabled

silk grail
#

We actually don't recommend you rely on the customer reaching the return url though. They could disconnect due to browser crash, network issues, accidentally closing the tab, etc and the payment could still be successful all without them ever reaching the return url. We really recommend you use webhooks to get notified that a payment is successful: https://stripe.com/docs/webhooks. Return url is supposed to mostly just be used as a success page that the end customer sees

pure idol
#

Yeah, I use both, just doing that in case the webhooks fail.

silk grail
#

Gotcha

pure idol
#

so it would be enough for me to just check the session id that's returned from the success url and mark it as paid?

#

assuming the webhook didn't reach the server

silk grail
#

Yeah that should be fine. I believe Klarna is "immediate notification", so once you get to the success url, payment should have already succeeded

pure idol
#

yeah, klarna should be immediate

#

thanks