#theahmadzai
1 messages · Page 1 of 1 (latest)
Do you have an onboarding link I can follow to reproduce this error?
I thought there was a link you could click to generate a test phone number for the account
Are the number of digits valid?
You mentioned that this is Standard onbnoarding. Which API call did you make to create the onboarding link?
const account = await stripe.accounts.create({ type: 'standard' })
const accountLink = await stripe.accountLinks.create({
account: account.id,
type: 'account_onboarding',
refresh_url: `${SITE_URL}/reauth`,
return_url: `${SITE_URL}/return`,
})
When i try to onboard with different account than my own it asks for phone
Otherwise it does not
Now I noticed that as well
I guess Standard onboarding requires an actual phone number, since even the account you're using to test could actually have a valid phone number
If that's the case stripe docs are misleading by saying, we can use a test phone in test mode
Where does it say that? Which docs specifically?
Thanks again, my problem solved
Added a phone number
btw curious how to force skip
There isn't a force skip function. The idea is that you simply wouldn't go through the onboarding beyond that point if you didn't want to add a phone number.
Hey, sorry to bother again, a quick question currenlty the way I'm onboarding is creating new accounts for users rather than linking to their existing ones, do I need to use legacy oauth instead accounts.create?
Are you wanting to create new accounts or link existing ones?
link existing ones their main accounts
where they have products
I followed this guide https://stripe.com/docs/connect/standard-accounts
You can use either of those workflows for that
But when client onboarded he had new account instead of his existing one linked, I did not have his products
One the same account he had new business aka account
Why did you create a new account for him instead of using his existing Account ID?
I sent him the onboarding like which was generated by this code
const account = await stripe.accounts.create({ type: 'standard' })
const accountLink = await stripe.accountLinks.create({
account: account.id,
type: 'account_onboarding',
refresh_url: `${SITE_URL}/reauth`,
return_url: `${SITE_URL}/return`,
})
But I think I have figured it, I need to use oauth
I went without oauth by this notice
But I think oauth is used to connect to existing account
There is no way I can get his account id to use in createLinks.create without him going through onboarding
That's not true. If they have a Stripe account already, then they can get an Account ID to give to you in order to create an Account Link
Every Stripe account has an associated Account ID
It's at the bottom of this page: https://dashboard.stripe.com/settings/user
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I know but I want to automate, they don't know much about stripe
If they have to copy paste, it has a bad impression
Hi 👋
If you want to connect to an existing Standard Account with as little required on the account's part, OAuth is a good option: https://stripe.com/docs/connect/oauth-reference
This is because for new Standard accounts we recommend using Account Links
But OAuth is still the option we have for integrating with existing Standard Accounts
Also if existing account id copy pasted throws this error
I think if our platform does not create an account we cannot create accountLink for it
I am not suggesting you do that.
Thanks, I'm now clear, so oauth is the only way right now to connect with existing standard accounts
Correct.
Thank you both so much, I appreciate this channel!