#derjanni - Klarna

1 messages · Page 1 of 1 (latest)

worldly stream
#

Hi 👋
Yeah Klarna is a weird payment method with some very async processes

#

Let me check our docs again for any helpful suggestions

nocturne chasm
#

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".

worldly stream
#

Yeah there are additional ansyc authorizations that Klarna does which can take quite a while

nocturne chasm
#

I have done 30+ payments in TEST. What are the differences between Klarna Sofort in TEST and and LIVE?

worldly stream
#

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.

nocturne chasm
#

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?

worldly stream
#

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.

nocturne chasm
#

But wouldn't a payment intent immediately switch to processing when the user returns to the redirect_url ?

worldly stream
#

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

nocturne chasm
#

"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?

worldly stream
#

We recommend using webhooks to track changes in the Payment Intent status rather than awaitng redirect from the user because

  1. They may not sync
  2. User may navigate away
nocturne chasm
#

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.

worldly stream
#

Have you experienced a 3 week delay with webhook delivery? In my experience the response is within 10-20 seconds

nocturne chasm
#

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.

worldly stream
#

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 the payment_intent.succeeded event (or payment_intent.payment_failed)