stripe-react-native
stripe-react-native copied to clipboard
[iOS] payment sheet not closing after Swish completion
Describe the bug After a successful payment using Swish and user is returned to app, the payment sheet is not closed.
It works fine for other providers using redirects (like klarna), it works fine in the iOS simulator. It does not work in TestFlight/App Store version.
To Reproduce Steps to reproduce the behavior:
- Click Payment button from payment sheet
- Open swish app, this opens bankid app (this can not be recorded, that's why there is two videos below).
- Press Open in app button.
- Sheet stays open and nothing happens
Expected behavior The payment sheet should disappear.
I also expected the handleURLCallback
function to return true. It does in simulator (when sheet is closed), but not in the TestFlight/prod version, there it returns false
.
They return url of the app is: myapp://stripe-redirect?payment_intent=pi_3POEQ8FVh2i3IPYO0pQbV9zw&payment_intent_client_secret=pi_3POEQ8FVh2i3IPYO0pQbV9zw_secret_MOouimBCcf3rD1raHkasnZUam&redirect_status=succeeded
Videos If applicable, add videos to help explain your problem.
https://github.com/stripe/stripe-react-native/assets/67104/c0b61db1-0387-446a-b361-cd96054b6cc8
https://github.com/stripe/stripe-react-native/assets/67104/eff450f7-a858-4383-97ad-c25aa865cff1
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6] iphone13
- OS: [e.g. iOS8.1] 17.5.1
- Browser [e.g. stock browser, safari] safari
- Version [e.g. 22]
Additional context Add any other context about the problem here. expo, using "@stripe/stripe-react-native": "0.37.2"