#prodigiousGhost
1 messages · Page 1 of 1 (latest)
Additionally my app works by sellers listing items for sale, at the time of listing, I need to retrieve their payout details to show them on the review page before they make the listing, is there a way to retrieve these details without sending the user to another webpage ?
Let me rope in a colleague who's more familiar with ios
Hi there
We currently don't support deeplinking app URL schemes for AccountLinks. You'd likely need to use a Universal link instead
https://developer.apple.com/ios/universal-links/
const accountLink = await stripe.accountLinks.create({
account: 'acct_1Msva0BUu6xpCsAu',
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_onboarding',
});
what would be the URLs i put here ?
Ideally, you'd redirect to your own site first and then deeplink to your app from there
https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app
is there any other way ?
Unfortunately, no alternatives at the moment.
what would I have to do on my site ?
where would this point ? and what action should it do... how can i reauthenticate it without knowing the original user account ID
We explain refresh vs return URL in the docs.
https://stripe.com/docs/connect/express-accounts#return-user
Typically, when your users hit Refresh URL refresh_url: 'https://example.com/reauth
Then that means that they haven't completed onboarding and are trying to continue that. So on an application level you'd want to authenticate them first to make sure its really them and then create another account link on your server to allow them to continue onboarding.
Once that's done, they should be redirected to return_url (Which is ideally your website page that redirects them to your iOS app using Universal link)
We can't walk you through how to set up a universal link on your server unfortunately. you'd want to refer to the Apple Developer docs I shared above