#sanderfish

1 messages · Page 1 of 1 (latest)

gentle remnantBOT
elfin eagle
#

Hi there, is it about a feature request to automatically determine type based on customer address?

lyric lion
#

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?

elfin eagle
lyric lion
#

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

elfin eagle
#

That's a local regulations, you might want to check with your compliance team.

lyric lion
#

But Stripe Checkout has a tax_id_collection flag that doesn't require to pass a Tax ID Type

gentle remnantBOT
chilly lion
#

it enables the option for the customer to select "I'm purchasing as a business" and they can enter a tax ID then

lyric lion
#

Right, but how does Stripe determine the tax id type based on the tax id?

chilly lion
#

the country the user picks

lyric lion
#

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

chilly lion
#

not sure what you mean

#

so you know the type

lyric lion
#

I'm building a custom payment flow, so we will collect the tax id ourselves and pass it to the tax calculations api

#

but to pass it to the tax calculations api we also need to provide the tax id type

chilly lion
#

then you need to ask the customer what their country/tax ID type is I suppose

#

that's how we do it inside our own product