#grimesbaby
1 messages · Page 1 of 1 (latest)
Is there a way to give users the choice between creating/connecting an existing account with "Connect Onboarding" flow or is this flow only possible with OAuth?
The Connect Onboarding should be able to connect existing accounts if they haven't connected to another platform
Thanks for your answer.
Connect Onboarding requires me to create a URL that contains the account ID:
const accountLink = await stripe.accountLinks.create({
account: 'acct_1032D82eZvKYlo2C',
refresh_url: 'https://example.com/reauth',
return_url: 'https://example.com/return',
type: 'account_onboarding',
});
Am I supposed to ask the user to enter their account ID, then pass it to the method above?
https://stripe.com/docs/connect/enable-payment-acceptance-guide?platform=web#create-account-link
I need the account ID to start onboarding.
Or are you saying that I can start onboarding without an account ID?
I think you would need to ask for the existing ID
Let's test in Test mode tho
You can open an account (not via API), then specify its Id in this Account Link API
Ok I'll try
{"errorMessage":"You requested an account link for an account that is not connected to your platform or does not exist."
That is the error message received when creating an Account Link with an existing Stripe Account ID
Unfortunately, it only allows me to create Account Links for accounts that were created through my platform
Is that the expected behavior?
Hi, yeah sorry it looks like it doesn't work that way. Sorry again for the back and forth. It looks like Account Onboarding cannot connect an existing Account to you
The OAuth flow is still usable tho: https://stripe.com/docs/connect/oauth-standard-accounts