#amory89-StripeJS
1 messages ยท Page 1 of 1 (latest)
maybe I'll try just giving it an empty string "" instead of null.. the docs say this parameter is optional though
Hi there, you are correct, the routing_number is an optional field when calling createToken function via bank_account tokenType
routing_number is required only if you are managing US bank accounts.
Thank you. hmm. I am indeed using the bank_account tokenType
I just double checked the country I'm passing, which is "IN" for India. Maybe Stripe is trying to outsmart me and is using my IP address location, i.e. the US, instead of the country I'm passing it? I sort of doubt it..
I believe this is determined by what you define within country: this.country() ๐
yes it sure is! and I am defining this.country as "IN"
I mean I have a dynamic way of doing it for prod but for. now I have it hard coded as IN
ah ha! I tried giving it a random string and got back this amazingly precise error. It wants the IFSC code (an India specific thing) in the routing_number field.
so IFSC code is India's version of a routing_number. That wasn't obvious in this doc (https://stripe.com/docs/connect/payouts-bank-accounts#formats) but I think I'm good for now. stripe is magic and you guys are great. thank you
shoot sorry one last question
is there a set of stripe dummy data I can use to verify my India workflow in the US. I.e. a dummy India IFSC code and account number that stripe will approve when I'm using my test API key
nvm found it
Thank you ๐