#KayBee
1 messages ยท Page 1 of 1 (latest)
Hi
I tried adding a deep link in the urlScheme prop of StripeProvider like myapp:// but this threw the error Not a valid URL.
What is the resulting url that throws this example, do you have an example ?
this is my rough code snippet
I'm not seeing the Deeplink handler
i even tried using the urlScheme as Linking.createUrl() that gives the "not a valid url" error
did you set your scheme in the app.json file as you using Expo?
i'm using react navigation to handle deep links
Not sure if that's working, did you tried to test with an example deeplink?
Try to refer to the official stripe react native application:
https://github.com/stripe/stripe-react-native/tree/master/example
And see you manage to reproduce... because the official documentation it recommends using handleCallback from stripe SDK
https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#react-native-set-up-return-url
yeah i did. I used this xcrun simctl openurl booted '<INSERT_URL_HERE>' command to open the deep link and it opened correctly in the app
i did try with handleUrlCallback as well. It is returning the url but the browser is not closing
Without having all the app code, it will be hard to determine the root cause, but did you tried to test the official react native example? I just did a test on this Screen for exmaple
https://github.com/stripe/stripe-react-native/blob/master/example/src/screens/PaymentsUICompleteScreen.tsx
And it just worked for me with a 3DS test card
https://stripe.com/docs/testing#regulatory-cards
ok let me try, thanks