#ivan_api
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/1226887634907959307
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ivan_code, 2 hours ago, 17 messages
You need to also go through the hosted onboarding flow
There should be prompts in that flow to use test data
So, you are suggesting me to go through the hosted onboarding flow and check what data is sent to the API?
@frigid yacht , I'm just trying to fill the capabilities like it works during the hosted onboarding
But I can see the error when trying to do it via api
stripe:error_code=None error_message='You cannot create Standard connected accounts with capabilities via API.'
req_cYNbNCig1adjaE
You need hosted onboarding with standard accounts
You can't do it all via the api alone
The account holder needs to go through there. You can prefill things, but they still need to onboard through an account link
Okaay, so how can I avoid hosting onboarding? Becuase it is impossible to go through it via autotests and I need to have stripe account connected?
You can't if you're using standard accounts
You also should never actually call our api in automated tests
So, here is no way to automate this step to avoid manual configuration?
Can I mix custom and standard accounts maybe? Because as I know custom accounts can be configured via API?
Yeah you can have a mix of connect account types
ok, let me try to create custom one
Can't understand what should I pass in external_account field. Passed the same value that I had during the hosted onboarding
Have an error here: req_enMqwmB9HbOBjc
๐ stepping in as codename_duchess needed to step away
Looks like that bank token was created on a different account here
So if you have multiple accounts you may be mixing up your keys
Or is that btoken on the Standard Connected Account?
If so, you can't use that on a Custom account
I've just copied it from the hosted onboarding
So, I should create some unique bank account for it?
You need to collect the bank account details yourself and create the token or you send the user through Custom Connect Onboarding and collect it that way.
Where I can find bank account details in case if I just need to mock it?
Oops sorry
That is the Customer bank account object
You want an external account
You can also use https://docs.stripe.com/js/tokens/create_token?type=bank_account to create the necessary bank token client-side
I can pass some random object to the external_account field? Or it should be a token?
No it needs to be a bank token (btok_xxx) or a bank account dictionary: https://docs.stripe.com/api/accounts/create#create_account-external_account with the raw details
{
"id": "ba_1N9DrD2eZvKYlo2C58f4DaIa",
"object": "bank_account",
"account": "acct_1032D82eZvKYlo2C",
"account_holder_name": "Jane Austen",
"account_holder_type": "individual",
"account_type": null,
"available_payout_methods": [
"standard"
],
"bank_name": "STRIPE TEST BANK",
"country": "US",
"currency": "usd",
"fingerprint": "1JWtPxqbdX5Gamtz",
"last4": "6789",
"metadata": {},
"routing_number": "110000000",
"status": "new"
}
So I can pass some random object like that to the external_account field?
Not exactly. If you want to pass the details directly, you would pass an object with the fields you see at: https://docs.stripe.com/api/external_account_bank_accounts/create#account_create_bank_account-external_account
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
account_number / county / currency/ object
Can you check why charged_enabled: false and details_submitted: false?
req_t1098F6IrWAFjH
I've created some custom account and looks like provided the same data as in hosted onboarding flow
You want to look at the requirements hash