stripe / stripe-react-native

React Native library for Stripe.
https://stripe.dev/stripe-react-native
MIT License
1.28k stars 263 forks source link

[Android] - Ideal payments #1358

Open asapMaki opened 1 year ago

asapMaki commented 1 year ago

Describe the bug A clear and concise description of what the bug is. Platform: Android This only happens in production on these bank options: SNS bank, Regiobank, Handelsbanken, BunqBV, ASN Opening some Ideal option for payments without having one of those banks apps installed. It closes popup window:

To Reproduce Steps to reproduce the behaviour:

  1. On Android, go to checkout, trigger confirmPayment function
  2. Click on one of the options mentioned above
  3. Once popup window opens and closes immediately
  4. See error

Expected behaviour To stay opened so user can finish payment flow

Screenshots If applicable, add screenshots to help explain your problem. Bullet points: https://user-images.githubusercontent.com/30200380/231693013-b0600113-e1c4-4f65-bc0c-a99b2e85cf64.mp4

Additional context visualised: https://user-images.githubusercontent.com/30200380/231693361-5866183f-2496-4ddc-a638-38ec16285656.mp4

Smartphone (please complete the following information):

Additional context So after I tried installing one app from bank options mentioned above, now it asks me if want to continue using my popup window or the app from bank. In this case it does not close.

charliecruzan-stripe commented 1 year ago

Hi! I think this has to do with how stripe-android is setting the return URL (i've seen the Failed to get PaymentResult from Intent error message in that case before). We're looking into a fix for that so I'm thinking that fix will also address this issue

Talaric0 commented 1 year ago

Are there any developments on this? Facing the same issue here.

charliecruzan-stripe commented 1 year ago

React Native apps must use singleTask launchMode’s to support deeplinking. The Android SDK uses Activity’s to launch many different payment flows. I think this is what's causing this issue here. You might want to try the solution shared here and see if that works for you- https://github.com/stripe/stripe-react-native/issues/355#issuecomment-1701323254