#thefyrewire-countries
1 messages · Page 1 of 1 (latest)
Hi there!
Hmm I'm not sure what you mean? The list of countries that can be localized?
Hi! I'm referring to the country dropdown list in Stripe Elements, when specifying a new payment method
Implementing an update payment method interface, so it would be great to be able to use the same list of countries
Ah thanks for clarifying.
Hrmmm I don't believe we have that list published anywhere.
We only publish the supported presentment currencies here: https://stripe.com/docs/currencies
Gotcha, guess I'll have to recreate the list myself for now. I hope the team'll consider the possibility of making it an endpoint or JSON map somewhere in the future 👀
I'll pass on that feedback!
Actually, wait one second and let me double check on something.
@undone wren give me a second here
It might be somewhere in our StripeJS codebase that is public which you can look at.
@undone wren let me know if you are still around, I have some more thoughts here.
I am indeed! I was looking through the different repos (btw if you add 1s after the GitHub link, you can open public repos directly in your browser to search! Super handy - https://github1s.com/stripe/stripe-js )
Sadly I couldn't find anything though
Yeah okay you won't be able to see this publicly, however really there is no reason to recreate this country dropdown.
We only use it to correctly format the postal code, but you should never really need it for updating payment methods.
Oh interesting... so I wouldn't run into errors if the postcode happens to change format due to being in a different country?
You would call this update server-side
So we will validate that and let you know
But mostly, why would you need to update country in general?
Like the card's country won't really change.
You would likely just be updating expiry and billing details, no?
Doesn't address fall under billing details? But yes I think you're right, it's not that big of a deal, I think I'm just thinking of cases where they entered the wrong country by accident and need to update the card later and set the correct country
Yeah the country really doesn't matter though. Notice we call it out in the API ref: its format is not enforced. That is because we don't use country for anything here. The issuer knows the country and is just going to use the postal code to verify AVS.