#Themax1-returnURL
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ are you referring to passing in a value to the return_url parameter when you're creating the link, or specifically how to structure the URL for Expo RN?
https://stripe.com/docs/api/account_links/create#create_account_link-return_url
something like that
because it says that I cannot use something different from https and http
so how I going to return to my app?
if app is actually something like this myapp://
the structure in return url in creating a link
and how I going to redirect after I finish the form
to my app
if is not https or http
@twin axle sorry for the delay. We don't support mobile URL schemes today. We expect you to redirect to your server where you would handle the redirect and possibly re-create a new AccountLink (which can't be done in a mobile application)
hmm gotcha
so when he finish the onboarding proccess what should I do?
for a better user experience
You redirect them to your server, there you check the state of their account for example to make sure they are all set and then your own code can redirect back to your mobile app
yes you control all of this it's your code
hmm interesting, going to try out them
it's going to support mobile return URL in the future? because it was going to be really good
We could, but it's a bad idea
AccountLinks have a short life and can only be used once. This means whenever someone loads that URL, if anything happens (change the locale, reloads the page, gets stuck, etc.) they go back to refresh_url where you generate a brand new one. If we did a deep link to your app you'd have to go back to your server, re-create a new link, go back to the mobile app, redirect, etc. It's just not a good user-experience
we could do this just for return_url but it'd be confusing
yep
for return url you be good
because when he finishes the onboarding proccess
he goes back to the app
instead of the refresh url
refresh url could look to the backend server and generate new link
but i think return url you be a good one
because in mobile, to open this link, you have to throw the user on a app-in-browser or open any browser
so refresh-url can't be used
I mean, it's kinda what I do now, I generate a link, he opens, the link turns out not more available and if he closes the in-app-browser, he has to generate another link through a button
sounds good