#nuttapol-countries

1 messages · Page 1 of 1 (latest)

empty crane
#

hi! no API for that, but they should just be standard ISO values

fierce umbra
#

Not for state I think

#

For state code, I even got text in their native country, such as กรุงเทพมหานคร for Thailand country

#

but I just want a list of state codes (or name) for Canada, US, and Australia

#

not need to be API, document of these code is fine too

empty crane
#

yeah, it's also going to depend on what your actual integration is on the frontend as to where the customer enters that information. Like if you use our hosted pages or have your own input directly passing to the API. Ultimately I sympathise, not all this data is completely consistent

#

no docs either I'm aware of, in the API itself those fields are just freeform strings. I believe we're tightening this up over time so that hosted Stripe surfaces do validation at least

fierce umbra
#

I'm using Stripe checkout

#

so free form text should be the one list in Stripe checkout page?

#

when I select each country

empty crane
#

as far as I know in Checkout it's a dropdown for the value that corresponds to state so the data should be consistent