#reginbald_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1459132497827987558
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ Hi there! Let me take a look
There generally isn't much validation that we do when you set/update an address via the API
What sort of validation are you looking for?
If you want to ensure that the address is valid for use with Stripe Tax, you can set tax[validate_location]=immediately when creating or updating a Customer: https://docs.stripe.com/api/customers/update#update_customer-tax
Ok I'll try that
I'm setting up a registration process for a user where he/she needs to have a valid address
Will tax[validate_location]=immediately validate both the shipping and billing address
That's a good question. Let me take a quick look
But I'd note that in most countries we just need a valid country code, and perhaps state or postal code, in order to be able to calculate tax correctly. Stripe doesn't do something like validate that a precise street-level address exists in any given country
Yeah, it looks like we validate both address and shipping[address] when that option is enabled
Ok good to know thank you