stripe-react-native
stripe-react-native copied to clipboard
[Android] - Ideal payments
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:
- First errors were, which I resolved by adding
<data android:scheme="nl-snsbank-ideal" />to intent in AndroidManifest:{"code": "Failed", "declineCode": null, "localizedMessage": "No Activity found to handle Intent { act=android.intent.action.VIEW dat=nl-snsbank-ideal://payment?trxid=123456123456&sp=123456123456}", "message": "No Activity found to handle Intent { act=android.intent.action.VIEW dat=nl-snsbank-ideal://payment?trxid=&sp= }", "stripeErrorCode": null, "type": null} - Next error is:
{"code": "Failed", "declineCode": null, "localizedMessage": "Failed to get PaymentResult from Intent", "message": "Failed to get PaymentResult from Intent", "stripeErrorCode": null, "type": null}
To Reproduce Steps to reproduce the behaviour:
- On Android, go to checkout, trigger
confirmPaymentfunction - Click on one of the options mentioned above
- Once popup window opens and closes immediately
- 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):
- Device: Android phones, (poco x3 NFC)
- OS: 12
- Browser Some that stripe uses (does not redirect to any specific one, just popup)
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.
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
Are there any developments on this? Facing the same issue here.
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