#jeffery-accountlinks-url
1 messages · Page 1 of 1 (latest)
jeffery-accountlinks-url
Could you provide a python example
@jagged cove usually you do a static URL and you use a cookie or a web session to recognize the user
https://stripe.com/docs/api/account_links/create has example in all languages
the point is to generate another link for them to onboard right
so wouldnt I have to call
stripe.AccountLink.create again?
like how do i automatically generate another valid onboarding link for the client
programatically
yes
that's what you do, you track who they are, you have their account id and you create a new link and redirect them again
how can a link become invalid?
those links are one time use
lets say i visit the link
so if they reload the page, change the locale, etc. it expires
does it become invalid
wouldnt that be recursive though?
the new link would also require a refresh_url
^example
sure you use the same url
an example of a refresh_url would be really helpful
would the implementation i have above work?
you create a link, send them to it, if needed they go back to refresh_url, you create a new linkm send them to it
there's no reason to create a new account instead
in my case though
in screenshot
generate_refresh_link would call itself
for the refresh_url
isnt that a problem
no I don't think it's a problem