#sanderfish
1 messages · Page 1 of 1 (latest)
Hi there, is it about a feature request to automatically determine type based on customer address?
Hey Jack. I want to provide the customer's Tax ID to the Tax Calculation
Yet it requires me to set the "type" of the Tax ID
Say I'm based in France and selling internationally. How would I know which "type" of Tax ID my customer has entered?
https://stripe.com/docs/billing/customer/tax-ids#supported-tax-id you can find the list of tax ID types here
Okay but how would I know wich Tax ID type to use?
my first thought was to use take the customer country, but some countries have multiple Tax IDs. Canada even has 6
That's a local regulations, you might want to check with your compliance team.
But Stripe Checkout has a tax_id_collection flag that doesn't require to pass a Tax ID Type
it enables the option for the customer to select "I'm purchasing as a business" and they can enter a tax ID then
Right, but how does Stripe determine the tax id type based on the tax id?
the country the user picks
But for example Canada has 6 tax id types
I guess I can use the country and then the tax id format to determine the type
Just seems a bit strange that Stripe doesn't handle it
not sure what you mean
the ID the customer enters on Checkout appears here : https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_details-tax_ids when the CheckoutSession is complete
so you know the type