#Geoffrey - country code
1 messages · Page 1 of 1 (latest)
To confirm, this is what you're talking about? https://stripe.com/docs/js/payment_request/create#stripe_payment_request-options-country
Yep! That's the one!
Yep so it needs to be set to the same country your stripe account is based in. You can find that here: https://dashboard.stripe.com/settings/account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ahh. I'm still curious, if the stripe payment request method uses my api key, why can't stripe figure out the country based on the account being used?
But that is very helpful thank you. You just saved us from some bugs!!
Sure thing
I don't know the answer to that question unfortunately
I'm sure there was a valid engineering reason though
Fair enough. It might be good to include more details about that field in the documentation -- just a simple "...of your Stripe account (see /settings/account)" could really help.
It just seems like there would be more to the field than there really is since the country needs to be passed in despite the fact that Stripe knows the account associated with the request, an account can't presumably have multiple countries (or can it?), and the country doesn't change based on the request
You've been very helpful though. A couple of us have been pouring over the documentation trying to figure out when the country for an account might change
Yeah I can see how this is confusing for sure
I'll mention it to the owning team
No guarantees that they'll change the phrasing in the docs though
Sounds great to me, thanks for all your help!