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

Paymentsheet does not open on iOS when selecting klarna payment. #1572

Closed
remonh87 opened this issue Nov 26, 2023 · 8 comments
Closed

Paymentsheet does not open on iOS when selecting klarna payment. #1572

remonh87 opened this issue Nov 26, 2023 · 8 comments

Comments

@remonh87
Copy link
Collaborator

Describe the bug
Paymentsheet does not open on iOS when selecting klarna payment.

To Reproduce
Steps to reproduce the behavior:

  1. Create payment intent for klarna
  2. In paymentsheet add the paymentintent id that is created in the initpaymentsheet arguments
  3. Execute presentPaymentSheet
  4. Notice paymentsheet is not opening because of error: noPaymentMethodTypesAvailable

The same steps work on android

Expected behavior
Paymentsheet opens with klarna

@seanzhang-stripe
Copy link
Collaborator

Hi @remonh87 Can you share with me the PaymentIntent ID? Also please make sure that you are using SDK version 0.4.0 and above.

@remonh87
Copy link
Collaborator Author

@seanzhang-stripe yes my payment id is pm_1OGlVpB3gMa6tyoMVv3EK9Fh

@seanzhang-stripe
Copy link
Collaborator

Hi @remonh87 a PaymentIntent ID starts with pi_, the ID that you shared belongs to a PaymentMethod.

Based on log, this PaymentMethod was created when you confirm a Klarna payment from your Android application built with Flutter. So I don't think this is the correct ID that we should use to investigate the iOS problem that you described.

@remonh87
Copy link
Collaborator Author

remonh87 commented Dec 4, 2023

@seanzhang-stripe my apologies I had so many klarna test intents that it was hard to find the right one. This is the correct one: pi_3OJhk3B3gMa6tyoM1ewK3Bl3

@seanzhang-stripe
Copy link
Collaborator

Hi @remonh87 I couldn't reproduce the problem. Can you share with me a trimmed down version of your react-native project that I run and replicate the issue?

@remonh87
Copy link
Collaborator Author

@seanzhang-stripe I found the issue the returnurl was not set. I could find the cause because the ios sdk was logging a warning somewhere very deep in the sdk (only could get it through xcode). Would be great if this error was thrown to the cross platform layer so the users could fix it easier.

@charliecruzan-stripe
Copy link
Collaborator

@remonh87
Copy link
Collaborator Author

yes in the ios logs I see this but for some reason they do not bubble up in flutter not your problem so close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants