#ivan_api

1 messages ยท Page 1 of 1 (latest)

tranquil siloBOT
#

๐Ÿ‘‹ 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.

white bobcatBOT
#

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.

frigid yacht
#

You need to also go through the hosted onboarding flow

#

There should be prompts in that flow to use test data

crude junco
#

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

frigid yacht
#

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

crude junco
#

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?

frigid yacht
#

You can't if you're using standard accounts

#

You also should never actually call our api in automated tests

crude junco
#

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?

frigid yacht
#

Yeah you can have a mix of connect account types

crude junco
#

ok, let me try to create custom one

white bobcatBOT
crude junco
#

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

copper citrus
#

๐Ÿ‘‹ 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

crude junco
#

I've just copied it from the hosted onboarding

copper citrus
#

You must collect that bank token on your platform

#

Yeah that won't work

crude junco
#

So, I should create some unique bank account for it?

copper citrus
#

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.

crude junco
#

Where I can find bank account details in case if I just need to mock it?

copper citrus
#

Oops sorry

#

That is the Customer bank account object

#

You want an external account

crude junco
copper citrus
crude junco
#

{
"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?

copper citrus
#

account_number / county / currency/ object

crude junco
#

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

copper citrus
#

You want to look at the requirements hash