#afonsolfm
1 messages · Page 1 of 1 (latest)
If they have existing Stripe Account, you would want to follow this Doc https://stripe.com/docs/connect/standard-accounts
Your users will be Standard Connected Accounts, connected to your Platform Account
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?
Ah sorry, yes the Doc above will create a new Account
https://stripe.com/docs/connect/oauth-standard-accounts this is the OAuth flow as the screenshot
Is it not deprecated the OAuth?
"OAuth is not recommended for new Connect platforms. We recommend using Connect Onboarding for Standard accounts instead."
Yes but it's for connecting to existed Stripe Account
Keep in mind that if their existing Stripe Account has been connected to another Platform, we will force them to create a new Stripe Account to connect to you instead. Explaination: https://stripe.com/docs/connect/oauth-changes-for-standard-platforms
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
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
yeah got it thanks