#daimyotoan-accountlinks
1 messages · Page 1 of 1 (latest)
@feral hemlock we archive the threads because we need to hand over between members of my team, and I really can't go get context from a thread from last week unfortunately.
If you have a question, happy to answer, what's up?
ok
i've used the api for account link creation
and got the return url. however when i open that link, it seems to be expired and redirect to the page
i've explained this to wsw last week and he was also surprise
oh yeah that
our best guess is that it's because you're sharing the link somewhere(like Slack or Discord), and you know how those services show a preview popup thing? That preview is probably 'consuming' the link.
either way the fix is just to implement the refresh_url so that it generates a new AccountLink and redirects to it(which you have to do anyway https://stripe.com/docs/api/account_links/create#create_account_link-refresh_url ) and that resolves the problem.
https://stripe.com/docs/connect/express-accounts#refresh_url these are the docs
Express enables your platform to manage payout schedules, customize the flow of funds, and control branding. Stripe will handle onboarding, account management, and identity verification for your platform.
i've read that but not sure what we need to do,hmmm
Sample on-demand platform built on Stripe Connect: Custom Accounts and Connect Onboarding for deliveries. https://rocketdeliveries.io - stripe-connect-custom-rocketdeliveries/stripe.js at 3fa249066...
there's an example there.
ok
see how it sets failure_url: config.publicDomain + '/pilots/verify' , where pilots/verify is just the current route? (also failure_url is an old name in an old API version unfortunately, but just pretend it's refresh_url)
all you do is provide a URL which does the same thing as you're already doing — calling the API to create an AccountLink, and redirect to it. So in that example it's just passing exactly the same route.