#amory89-StripeJS

1 messages ยท Page 1 of 1 (latest)

vocal rivet
ancient valley
#

maybe I'll try just giving it an empty string "" instead of null.. the docs say this parameter is optional though

vocal rivet
#

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.

ancient valley
#

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..

vocal rivet
#

I believe this is determined by what you define within country: this.country() ๐Ÿ™‚

ancient valley
#

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.

#

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

vocal rivet
#

Thank you ๐Ÿ™‡