#afonsolfm

1 messages · Page 1 of 1 (latest)

trail fjordBOT
latent snow
#

Your users will be Standard Connected Accounts, connected to your Platform Account

pearl chasm
#

I did that but it doesn't offer me an option to select a stripe account, like this flow does:

#

For this platform that I screenshotted, they're using OAuth, however, I'm using the new API and I'm always prompted to create a new stripe account, is it because of test mode?

#

Here's the code I'm using:

 const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, { apiVersion: "2022-11-15" });
        const account = await stripe.accounts.create({
            type: "standard"
        });
        const { url } = await stripe.accountLinks.create({
            account: account.id,
            return_url: new URL("/general", process.env.BASE_URL).href,
            refresh_url: new URL("/general", process.env.BASE_URL).href,
            type: "account_onboarding"
        });
        return url;
#

I always get this screen:

#

Why does it always create a new account instead of using my stripe?

latent snow
#

Ah sorry, yes the Doc above will create a new Account

pearl chasm
#

Is it not deprecated the OAuth?

#

"OAuth is not recommended for new Connect platforms. We recommend using Connect Onboarding for Standard accounts instead."

latent snow
#

Yes but it's for connecting to existed Stripe Account

pearl chasm
#

using the standard account how can the user have a dashboard?

#

is the dashboard the same as a normal stripe account?

#

oh i see, it shows up on my stripe accounts

#

when im on test mode

latent snow
#

Standard Account is basically a full-function Stripe Account

#

You would want to open the link in different browser, with the "other" existing Account logging in, to test

pearl chasm
#

yeah got it thanks