#chooke-express
1 messages ยท Page 1 of 1 (latest)
Hello! Is there a specific reason you're using the oauth flow for express accounts? Usually we recommend Account Links when onboardig express accounts, so just want to be sure you want to go down this route
so basically we need to store an ID in the metadata to keep track of the stripe account later in our database , if there is a better approach to do this , then that would be awesome
With Account LInks you can create an Account up front (and set whatever metadata you want on it) and then use that Account ID to generate an Account Link URL that directs the user through the rest of the onboarding process (see https://stripe.com/docs/connect/express-accounts#create-account)
yes, thats what we currently have , i tried to pass the metadata in the url , but for some reason when the account is created or connected , metadata is empty
That's the oauth flow though, not the Account Links one that I mentioned - there's no way to prefill metadata with the oauth flow
I need to head out, but ifyou need anything else @lilac gull is around and can help
๐ stepping in for karbi
so this needs to be done through api ?
After finish the OAuth flow yes. But there is a question before that, why don't you use the Account Links flow instead? OAuth is an older and legacy flow
so basically what im trying to do is
- let the users connect their stripe account if they have and then redirect them to our app
- if they dont have , create the account and redirect them back and we store the id in metadata
pls help ๐
I don't think it's possible to connect an already existed Express Account
So you can go with the Account Link flow and have 2 steps:
- Create Account before hand
- Create an Account Link so your user can finish registering
And in step 1 you can set the metadata you need: https://stripe.com/docs/connect/express-accounts#create-account
thank you so much for your help ๐ฏ