#gokul_00442
1 messages · Page 1 of 1 (latest)
Hi, could you elaborate?
Hi
we are a company registered in US and UK.
I have set up as General Servixe and Automatic Tax is enabled.
I have a product catlog of 100 Pound wfhich is subcription mode and that is Yearly and in that i have setup tax should be collected exclusively.
I have also added a Tax registration for UK only for now
What I need is any users who are coming from UK or US tax needs to be added for the original price, and for other non US and UK users tax should not be collected.
But in the checkout page for all users its collecting tax, even if I select India or Sri Lanka
VAT 20% is added to original price.
What I am not getting is Tax registration is only added for UK, why its collecting for other country as well.
hello
Do you have your Checkout Session URL?
You would want to reach out to Support for fully clarification, but I think the Tax Registration in Dashboard is for your business, but the one displayed in Checkout is determined by the customer location
So it will always collect tax based on their location as long as you turn on Auto Tax
Ok..
I will disable auto tax
what should I do if I need to collect tax in US and UK only
You may need to move from Checkout to PaymentElement, and collect your customer location first, then if they are in US and UK use the Tax Calculation API https://stripe.com/docs/tax/custom
ok
can we do that using checkout session url?
this is my laravel code
'payment_method_types' => ['card'],
'billing_address_collection' => 'required',
'shipping_address_collection' => [
'allowed_countries' => ['US', 'GB'],
],
'line_items' => [
[
'price' => $subscriptionPriceId,
'quantity' => 1,
],
],
'mode' => 'subscription',
'success_url' => route('payment.success'),
'cancel_url' => route('payment.cancel'),
I am afraid not. Checkout doesn't work with this custom Tax Calculation API
ok.
in that case we need to write custom html to collect user data and show tax calculation based on the user data and then submit the data to stripe for final payment processing via ajax
am I correct here
Ok.. This means a lot of development again and time consuming...
Any reason why this is not available in checkout session page?
I think you can pre-collect the Customer address, determine if it's UK and then turn on or off automatic tax when you create a Checkout Session with them
Just idea, you would want to try out in Test mode
but I want do it depending on the billing address
tax is calcutated based on the info that is being selected in the billing address, Right?
Yeah then it's not possible, sorry. Either collect billing address beforehand and save to Customer Id to control it, or use a more flexible and controllable flow as PaymentElement