#testDeveloper
1 messages · Page 1 of 1 (latest)
Hi, this is not deprecated but it's a legacy product, https://stripe.com/docs/api/tokens/create_card. Are you seeing an issue?
so can we create a account token if we eventually want to create a connected account using add payment Method?
Technically yes, however that is not something we encourage. Instead, we recommend this, https://stripe.com/docs/api/external_accounts.
where do we get this parameter from external_account?
Can you clarify your ask please? Which parameter are you referring to?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
as per this reference
const bankAccount = await stripe.accounts.createExternalAccount(
'acct_1032D82eZvKYlo2C',
{
external_account: 'btok_1MHyAX2eZvKYlo2CRIgwIN1m',
}
);
this param external_account
You's pass the data when you create the account, requires_payment_method and you would get a ba_xxx id.
where do i do that process ?
can you let me know create connected account as per new payment flow ?
You can create a connected account here, https://stripe.com/docs/api/accounts/create.
Maybe I'm not fully understanding the ask, can you confirm what you're really trying to do?
so we need not create a btok_id before creating an account?
Nope, you can pass the bank data when creating the Connected account: https://stripe.com/docs/api/accounts/create#create_account-external_account
Kindly confirm
is this deprecated stripe.accounts.create ?
https://stripe.com/docs/api/accounts/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.