#jeffery-accountlinks-url

1 messages · Page 1 of 1 (latest)

vale crownBOT
weak atlas
#

jeffery-accountlinks-url

jagged cove
#

Could you provide a python example

weak atlas
#

@jagged cove usually you do a static URL and you use a cookie or a web session to recognize the user

jagged cove
#

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

weak atlas
#

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

jagged cove
#

how can a link become invalid?

weak atlas
#

those links are one time use

jagged cove
#

lets say i visit the link

weak atlas
#

so if they reload the page, change the locale, etc. it expires

jagged cove
#

does it become invalid

weak atlas
#

yes

#

if you share it in Slack it gets expanded and is invalid after that too

jagged cove
#

oh shiet

#

is there a way to bypass this?

weak atlas
#

no

#

you use refresh_url, they get to that URL and you create a new one for them

jagged cove
#

wouldnt that be recursive though?

#

the new link would also require a refresh_url

#

^example

weak atlas
#

sure you use the same url

jagged cove
#

an example of a refresh_url would be really helpful

#

would the implementation i have above work?

weak atlas
#

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

jagged cove
#

in my case though

#

in screenshot

#

generate_refresh_link would call itself

#

for the refresh_url

#

isnt that a problem

weak atlas
#

no I don't think it's a problem