#levi-basurto_error
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1393329488477294602
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Let me take a look
Thank you
You need to redirect the user to Klarna I believe.
No.
One sec
Use stripe.confirmKlarnaPayment to handle the redirect away from your page and to complete the payment. Add a return_url to this function to indicate where Stripe should redirect the user after they complete the payment on the Klarna website or mobile application [0].
[0] https://docs.stripe.com/payments/klarna/accept-a-payment?web-or-mobile=web&payment-ui=direct-api
Looking at the PaymentIntent you shared, there's redirect_to_url.url in next_action
The user is meant to be redirected to Klarna to complete payment, and once they are done they will be brought back to your site via return_url
We recommend using Stripe.js to submit Klarna payments to Stripe. It automatically handles the redirects to the Klarna and back. I recommend reading through the "Set up Stripe.js" section of the docs [0].
So I have to put some coding stuff in there to get it through?
Can I send you a payment link to add it on?
Are you using payment links?
Ok, I can see you're using Hosted Checkout. We handle the redirect automatically. There's nothing additional you need to do.
The PaymentIntent is in a requires_action state because the customer did not complete the Klarna payment process.
So maybe verify his klarna account?
Is what he needs to do?
Once he pays he gets a loading screen and it won’t ever go through
Yes, they need to complete whatever they were asked to do on the Klarna side of things.
Doesn’t say anything just continues to load