#.saberkhan
1 messages · Page 1 of 1 (latest)
Hi there!
How to get bank token?
Can you clarify what you are trying to do?
Are you trying to add a bank account to a Stripe connected account?
To add external bank account in custom account for connected account
I read the Stripe JS Reference but stlll not clear how to get a bank token?
Got it. Stripe can collect this information fo you if needed for custom accounts, as mentionned here: https://stripe.com/docs/connect/connect-onboarding#how-to-use-connect-onboarding-for-custom-accounts
Does that work for you, or you want to collect that information yourself?
How about if we want to collect bank account information?
We recommend letting Stripe collect that information, as mentioned in the link above. But if needed you can directly collect that information yourslef. Is this what you are looking for?
Yes that is what I am looking for.
Got it, then you should use this: https://stripe.com/docs/js/tokens_sources/create_token?type=bank_account
The Charges API is the fastest way to accept U.S. and Canadian payments for your startup or prototype. According to above document. How about creating bank account token for non US and Canadian bank. Will it be possible to create bank account token for Banks outside of US and Canada?
I'm confused, why are you talking about the Charge API now?
What exactly are you trying to do?
If you want to add an external bank account to a custom account:
- Either let Stripe collect that information with the Stripe onboarding
- Or collect that information yourslef with
stripe.createToken('bank_account', ...)
stripe.createToken documents shows only for US and Canada. How about other couttires?
Where do you see this? I don't see that mentioned in the link I shared. It should work for all countries.
Fields are different for different countries and how then above bank account token will work?
Yes that's why we recommend to use the Stripe onboarding, because you don't need to care about all this complexity.
But if you provide the correct information to the createToken method, it should work regardless of the country.
I already know the fileds for all the 120 countries Stripe support but then I need to do lot of testing.
Yes, it's a lot of work to collect bank account details yourself, but it's possible.
Is there a way to simulate bank account information using token perhaps using postman?
No you need to use Stripe.js for this.
Thank you!
Happy to help 🙂