#wellthen ๐ช๐บ
1 messages ยท Page 1 of 1 (latest)
Yeah that's correct
so there's no need for me to do additional checks on the returned data?
assuming only card and klarna are enabled
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
Yeah, I use both, just doing that in case the webhooks fail.
Gotcha
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
Yeah that should be fine. I believe Klarna is "immediate notification", so once you get to the success url, payment should have already succeeded