#NeatFastro-externalacct-connect

1 messages · Page 1 of 1 (latest)

sonic oliveBOT
humble bolt
#

hello, please share

nimble token
#

Adding externalAccount requires 3 params 1. country 2. currency 3. accountNumber but an (connect) account in a country like netherlands can add multiple accounts of different currencies and it works fine when the values are 1. nl, 2. eur and 3. an IBAN of NL

#

if I keep the country NL an try to change the other values then it won't work

humble bolt
#

sorry that was not clear, can you clarify with more detail?

like what you tried, what you expect to work, what doesn't work, etc

#

I can't infer given the details above

nimble token
#

ok please wait a little...

humble bolt
#

NeatFastro-externalacct-connect

nimble token
#

I was under the impression that when adding an externlAccount the (connected) account's country will be use used for any of the supported currency

#

because when adding an externalAccount in the stripe hosted connect onboarding we don't always need to specify the country of the external account so the it means that the connected account's country code is used right?

#

I think I need to take a look at the country spec api, specifically the supported_bank_account_currencies field, but it's a bit confusing at first glance so I would need some help decrypting it.

#

I will let you know if I have any question in a bit please don't close this thread

#

Ok so hers's what I got...
Looking at the country_spec object for with id: NL I should be only concerned with these two fields 1. default_currency & 2. supported_bank_account_currencies.eur because the default_currency's value is eur if it was different e.g. aud then I would be concerned with supported_bank_account_currencies.aud right?

#

But now looking at the stripe hosted onboarding I don't know how they utilised this data

#

Basically what I want is the connected account should be able to add any an externalAccount for any of the supported currency for his country

lapis crane
#

Got it, I see. And you're working with Custom connected accounts?

nimble token
#

yes

lapis crane
nimble token
#

I will check this out in 30 mins please don't close the thread

nimble token
#

thanks for waiting. just a bit more moments

nimble token
#

When I try to create a token using these params

"bank_account": {
    "country": "NL",
    "currency": "chf",
    "account_number": "CH9300762011623852957"
  }

then stripe nodejs sdk returns a response:
StripeInvalidRequestError: You must use a test bank account number in test mode. Try NL39RABO0300065264 or see more options at https://stripe.com/docs/connect/testing#account-numbers

#

Can you tell me what am i doing wrong here?

sonic token
#

👋 Hopping in here - give me a minute to catch up

#

Is there a reason you're using CH9300762011623852957 with country: NL? What happens when you use NL39RABO0300065264?

nimble token
#

It works fine with NL IBAN code

#

The reason I'm using CH IBAN with country NL is because the connected account that's trying to create the token is an NL account