Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Klarna payment can never complete; stuck after banking login #4356

Open
phoboslab opened this issue Dec 13, 2024 · 3 comments
Open

[BUG] Klarna payment can never complete; stuck after banking login #4356

phoboslab opened this issue Dec 13, 2024 · 3 comments
Assignees
Labels

Comments

@phoboslab
Copy link

Summary

Some(?) Klarna Payments can't complete.

When trying to pay with Klarna and choosing "pay by bank" on the in-app-browser, Klarna attempts to open the banking login in a new tab. Since the in-app-browser doesn't support tabs, you're just redirected in the same window. After the banking login completes you're supposed to close the tab - which you can't. So you can't get back to Klarna to complete the payment.

You're stuck on the following screen. Your only option is to close the in-app-browser, which will bring you back to the initial native payment sheet.

I have a complete screen recording, but it contains personal information. I'm happy to share it privately. I cannot reproduce the issue in Stripe's/Klarna's dev environment.

IMG_9682 2

Code to reproduce

As simple as it gets:

var configuration = PaymentSheet.Configuration()
configuration.merchantDisplayName = "Some Title"
configuration.returnURL = "myappscheme://stripe-redirect"
self.paymentSheet = PaymentSheet(paymentIntentClientSecret: paymentIntent, configuration: configuration)

Happy to share the full XCode project privately, but I believe the issue is well within the payment sheet, not my app code.

iOS version

18

Installation method

pod

SDK version

24.1.2

Other information

What am I doing wrong? We can't be the only ones facing this issue.

I'm trying to pay through my bank N26. Maybe it behaves differently for different banks.

This issue only appeared for our customers a few weeks ago. I strongly suspect that Klarna is at fault here, but they are impossible to contact. Sorry :/

@nskobelevs-stripe
Copy link
Contributor

Hey @phoboslab, thanks for bringing this to our attention!

I don't think this is something we've seen reported before. Can you share a few sample Payment Intent ids for which you experienced this so we can take a better look?

@phoboslab
Copy link
Author

Here is a recording of pi_3QVrewCZ37r8cY5H0k5Tm1TI from this morning. It's stuck in payment_intent.requires_action because Klarna never returns to Stripe.

stripe-klarna.mp4

@nskobelevs-stripe
Copy link
Contributor

@phoboslab Thanks for sharing!

I've shared the sample with our partner and they've confirmed it's related to the Pay by Bank redirect - more specifically it seems to be bank dependent based on how each handle/perform the redirect back to Klarna after auth.

Let me get back to you once I have an update on the fix timeline or next steps

@nskobelevs-stripe nskobelevs-stripe self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants