#mohit-kumar_error
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1359860854639821022
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
Yeap
Checking...
The goal here is to create a bank account for a connected account for payouts, right ?
If so, are you willing to collect the bank account details by your own inputs in production ?
yes
yes same I want
Thanks for confirming, checking...
Sorry for the late response.
Currently, you can't call that API in test mode. You can do it just in live mode.
As a workaround, you could use SetupIntent Following this guide
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=financial-connections#managing-multiple-bank-and-debit-accounts
I’m using a test Stripe key and adding test bank details with the stripe.accounts.createExternalAccount function. Will this process be treated as a test payment?
please confirm
Using StripeTest keys with test data, https://docs.stripe.com/connect/testing#account-numbers yes. However, as my teammate mentioned you can't access that, https://dashboard.stripe.com/test/logs/req_CemLg1Q8Vm9XsS in test mode. I reccomend that you follow the above guide.
const bankAccount = await stripe.accounts.createExternalAccount(
userData.stripeId,
{
external_account: {
object: "bank_account",
country: "US",
currency: "usd",
routing_number: routing_number,
account_number: account_number,
account_holder_name: account_name,
account_holder_type: account_type,
},
}
);
how can I use that function on test mode because I need to check the payout functionality on test mode please suggest or share the updated code for test mode
Currently, you can't call that API in test mode. You can do it just in live mode.
As a workaround, you could use SetupIntent Following this guide
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=direct-api&bank-account-collection-method=financial-connections#managing-multiple-bank-and-debit-accounts
Or simply hosted onboarding:
https://docs.stripe.com/connect/payouts-bank-accounts?bank-account-collection-integration=prebuilt-web-form&bank-account-collection-method=manual-entry#managing-multiple-bank-and-debit-accounts
Can you use test using the above please?