#sumitp07
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sumitp07, 3 days ago, 48 messages
👋 How can I help?
I am troubling with the cutomized stripe checkout process.
My requirement is
- if the customer is from France then apply French Tax (20%)
- if the customer is from an EU country then apply EU Autoliquidation Tax (0%): and they provide a valid VAT number
- if the customer is outside the EU then apply Default Tax Rate (0%)
Our application flow is like the customer needs to subscribe for the product to get access for paid things. so for that we are using stripe checkout process.
So at the time of subscription on checkout page we product details section and billing section.
In product details section we have product details and tax details as I have mentioned above, and in billing section, we need to ask vat number of the customer if the customer is from EU region and country is not France.
Are you going to manage the tax manually or use Stripe to manage the tax for you?
hi
Hi, will respond shortly
ok
Hi, do you use Stripe Checkout as a redirection based approach, or Payment Elemnet as embeded components?
I am using Stripe Checkout as a redirection based approach
And you are using Stripe Tax (automatic tax)? It will automatically apply the appropriate Tax rate based on your customer inputed address
You just need to pre-register https://stripe.com/docs/tax/set-up
No, I have 3 tax rates which I have mentioned in above requirements,
- if the customer is from France then apply French Tax (20%)
- if the customer is from an EU country then apply EU Autoliquidation Tax (0%): and they provide a valid VAT number
- if the customer is outside the EU then apply Default Tax Rate (0%)
I see, so you probably need Dynamic Tax Rates instead of Automatic Tax. See here https://stripe.com/docs/payments/checkout/taxes?tax-calculation=tax-rates#dynamic-tax-rates
right, but on checkout page it is not happening as troubling for identify the country chosen by customer as I am not able to handle the events on elements,
Have you tried the Dynamic Tax Rates approach above? Do you mean you already tried and it didn't work?
yes
Because to pass the correct tax id I need customer address details first and that is we don't have
No the Dynamic Tax Rates will match the address your customer input in Checkout
If you tried it please provide the Checkout Sesison Id cs_test_xxx
ok, let me send
cs_test_b1PceMLabChqIgfStnAKcHhgCWkLMeV9IwhW8kQfDHes5QJhicmp2W00go
How can I achieve these conditions with the dynamic tax rate ids
- if the customer is from France then apply French Tax (20%)
- if the customer is from an EU country then apply EU Autoliquidation Tax (0%): and they provide a valid VAT number
- if the customer is outside the EU then apply Default Tax Rate (0%)
specially these two conditions (2 and 3)
2) if the customer is from an EU country then apply EU Autoliquidation Tax (0%): and they provide a valid VAT number
3) if the customer is outside the EU then apply Default Tax Rate (0%)
I see.. If you think of just 2 options 20% and 0%, would it work if you just specify the FR tax rate? It's simply matching "if France 20% else 0%"
But I need to ask for VAT number for all EU countries except France!
at the same time
hi
How do you ask for VAT? Is it something outsied of the Stripe hosted Checkout Session page?
no, On the same page for EU countries customers but not for France
To clarify, do you refer to this Tax Id? https://stripe.com/docs/tax/checkout/tax-ids#create-session
Yes, I have refered this but My requirement is enable the vat number collection for all EU region countries only except the France country and other countrie than EU region countries
Yeah I see, seems that conditional requirement isn't supported in Checkout. I can only think of asking your customer their location and collecting your customer tax id beforehand, then set into customer.tax_ids array when you create the Checkout Session
Sorry have no better idea
So, how can i achieve this?
asking your customer their location and collecting your customer tax id beforehand, then set into customer.tax_ids array when you create the Checkout Session
What if the customer change the location on checkout page?
Then it depends on how you would want to handle that case. You can ask them to provide VAT again if they change to an EU country, for example
country change identification is not possible on checkout page, So we can't ask for VAT number on the same checkout page.
Is there any customize solution for this, as we can apply both tax rate ids and vat number if required depend upon customer location change?
Unfortunately not AFAIK. You would want to consider building your own checkout page and control all those logic, by switching over to the embeded Payment Elements then
but with the Payment Elements also we cant get the location after country change, right?
You can use Address Element and listen to input: https://stripe.com/docs/elements/address-element/collect-addresses