#theahmadzai

1 messages · Page 1 of 1 (latest)

grizzled socketBOT
blissful shore
#

Do you have an onboarding link I can follow to reproduce this error?

steel mist
#

sure let me generate one

blissful shore
#

I thought there was a link you could click to generate a test phone number for the account

#

Are the number of digits valid?

steel mist
#

yes copy pasted from the stripe page

blissful shore
#

You mentioned that this is Standard onbnoarding. Which API call did you make to create the onboarding link?

steel mist
#
      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

blissful shore
#

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

steel mist
#

If that's the case stripe docs are misleading by saying, we can use a test phone in test mode

blissful shore
#

Where does it say that? Which docs specifically?

steel mist
#

Thanks again, my problem solved

#

Added a phone number

#

btw curious how to force skip

blissful shore
#

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.

steel mist
#

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?

blissful shore
#

Are you wanting to create new accounts or link existing ones?

steel mist
#

link existing ones their main accounts

#

where they have products

blissful shore
#

You can use either of those workflows for that

steel mist
#

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

blissful shore
#

Why did you create a new account for him instead of using his existing Account ID?

steel mist
#

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

steel mist
blissful shore
#

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

steel mist
#

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

random mantle
steel mist
#

Thanks is there anything that I should be aware of like this notice

random mantle
#

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

steel mist
#

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

random mantle
#

I am not suggesting you do that.

steel mist
#

Thanks, I'm now clear, so oauth is the only way right now to connect with existing standard accounts

random mantle
#

Correct.

steel mist
#

Thank you both so much, I appreciate this channel!