#derjanni - Klarna
1 messages · Page 1 of 1 (latest)
Hi 👋
Yeah Klarna is a weird payment method with some very async processes
Let me check our docs again for any helpful suggestions
To be more precise: my software usually only proceeds with payments when they are "processing" or "succeeded". However it seems that after the redirect I even get payments that are still "pending".
Yeah there are additional ansyc authorizations that Klarna does which can take quite a while
As we call out in this doc: https://stripe.com/docs/payments/klarna/accept-a-payment?platform=web#handle-redirect
We recommend that you rely on webhooks to confirm the status of a payment.
I have done 30+ payments in TEST. What are the differences between Klarna Sofort in TEST and and LIVE?
Well in test we are simulating Klarna processes. There may be more delay since we would actually be interacting with their network in Live mode.
What status does a Klarna Payment Intent have when the user returns from Klarna? Is it "processing" immediately or does it have another status before that?
Any chance I can test a really bad Klarna payment process in TEST?
Unfortunately I do not see that as an option. A Klarna PI has the same potential statuses as other Payment Intents, it just may be longer in "processing" than others.
But wouldn't a payment intent immediately switch to processing when the user returns to the redirect_url ?
Not necesarily. That is why we recommend not relying on user redirection to handle server actions
It is also not uncommon for users to simply fail to return to your app/site because the internet can be messy
"That is why we recommend not relying on user redirection to handle server actions"
I don't understand it the way your formulated it, could you rephrase it?
We recommend using webhooks to track changes in the Payment Intent status rather than awaitng redirect from the user because
- They may not sync
- User may navigate away
Unfortunately, our customers have limited inventory which means that a payment intent with a confirmation through a hook 3 weeks later isn't all that helpful and would just pile up payment processing fees and refunds.
Have you experienced a 3 week delay with webhook delivery? In my experience the response is within 10-20 seconds
That was a bit exaggerated, but it depends on the webhook. I mean with Klarna, as you stated, it may take ages to complete.
Plus, I don't have a problem with customers following the redirect. They do. I have a problem of not being unable to determine if Klarna Sofort was completed by the customer.
Our software processes hospitality transactions with Stripe Connect (with written approval from Stripe).
Anyway thanks, I'll try do dig through the docs a little further.
I have a problem of not being unable to determine if Klarna Sofort was completed by the customer.
This is where the best possible solution I know of is listening for thepayment_intent.succeededevent (orpayment_intent.payment_failed)