#michaelfrost3779
1 messages · Page 1 of 1 (latest)
Hello, I'm getting this error when I'm in the Klarna flow redirect.
This is a screenshot
How are you integrating Klarna ?
Are you following this:
https://stripe.com/docs/payments/klarna/accept-a-payment
I'm creating a PI like this: const paymentIntent = await this.stripe.paymentIntents.create({ amount, currency: 'eur', automatic_payment_methods: { enabled: true }, metadata: { order_ref: ref }, })
Can you share the PaymentIntent id ?
Yes, of course. Please give me one moment.
According to the screenshot this seems to be on Klarna side, but let's check the PaymentIntent if there is an issue on Stripe Side
Between, how are you testing your integration? are you using one of these test credentials ?
https://stripe.com/docs/payments/klarna/accept-a-payment?platform=web&ui=checkout#test-integration
pi_3OhXGoEI4nxwUjY413JsH9G5
It happens when I select any other country then Austria here.
In this case I can't eaven thest any credentials because I get the message from Klarna before.
The PaymentIntent status is in requires_action
So the payment need to be completed on Klarna Side
That makes sense.
Did you tried to test using one of these credentials ?
<https://stripe.com/docs/payments/klarna/accept-a-payment?platform=web&ui=checkout#test-integration
No, I don't get that far on the Klarna redirect page.
Did you try to reach out to Klarna and see why you are getting that error page ?
Can you translate the error for me in English ? and see if I can find something ?
Sure!
The country in which you are shopping does not match the country of your billing address. You can log in again with a different account.
I thought that I might have to set customer country somewhere on the payment intent?
So that's explain, it, you are connected from Austria
So you can test it only if you choose Austria as a country
It happens when I select any other country then Austria here.
Which explains this
So the block is on Klarna side
you need to choose your contry code same as the country of your IP location
For both
Ok, thanks!
Happy to help!
One more question, I didnt manage to use provided test credentials to be denied.
This is what I tried:
Entered the credentials for Austria for Denied: Test Person-at and customer+denied@email.at with the country Austria selected.
I get redirected to Klarna.
You need to use these values
I'm in Austria, not Australia.
Eaxactly, that is what I entered.
Can you share a screenshot on Klarna part ?
This is the what I get when I am redirected
In the background I see that some generated e-mail address was used and not the address I just entered.
Hit on close
and try using another account by filling the details provided by Stripe
I used the name and email address provided by strip for testing (decline) in the first screen here:
This is in Striep Element
Yes
Did you try to set thoses details in Klarna too ?
It sais that it is not available to edit.
I just did a test and it's taking into account the email address