[EXPO GO] 3D secure not return to Expo
See original GitHub issueDescribe the bug Cards like Authentication required: 4000 0027 6000 3184, lead to hooks.stripe.com as a webview and return to Expo App Home aftere succefull or failure payment .
also, click on complete authentication or fail clicks then, If close the webview trigger back to App screen .
To Reproduce
<StripeProvider publishableKey="***************************" urlScheme="exp://192.168.1.102:19000" threeDSecureParams={{ // backgroundColor: '#FFFFFF', // iOS only timeout: 5, label: { // headingTextColor: '#0000', headingFontSize: 13, }, navigationBar: { headerText: '3d secure', }, footer: { // iOS only backgroundColor: '#FFFFFF', }, submitButton: { // backgroundColor: '#000000', cornerRadius: 12, textColor: '#FFFFFF', textFontSize: 14, }, }} >
Screenshots
Additional context Expo Go , Expo 41, stripe-react-native :0.1.1
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (3 by maintainers)
This doesn’t work for me. I am running locally, on android, it doesn’t close the WebView and return to the app on Expo. Can you share a snippet? Was there something else you added?
The snack example above works for the Prebuilt UI screens, but for the webhook payment after clicking “confirm authentication” I see “Safari cannot open the page because the address is invalid” (not sure what the difference is between those two in regards to where the redirect is pointing @thorsten-stripe)
But as for urlScheme redirects- you should use
Linking.createUrl()
to get the scheme of your app. However, in Snack, you cannot set the app scheme, so you’ll have to run a project locally