#gokul_00442

1 messages · Page 1 of 1 (latest)

jolly brambleBOT
cerulean pivot
#

Hi, could you elaborate?

keen grotto
#

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

cerulean pivot
#

Do you have your Checkout Session URL?

keen grotto
#

yes

#

you need the full URL?

#

let me know

cerulean pivot
#

The is works too

#

cs_test_xxx

cerulean pivot
#

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

keen grotto
#

Ok..

I will disable auto tax

what should I do if I need to collect tax in US and UK only

cerulean pivot
#

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

Learn how to use Stripe Tax APIs to calculate sales tax, GST, and VAT with Stripe’s payments APIs, non-Stripe payment processors, or multiple payment processors.

keen grotto
#

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'),

cerulean pivot
#

I am afraid not. Checkout doesn't work with this custom Tax Calculation API

keen grotto
#

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

cerulean pivot
#

Yes!

#

Using PaymentElement would be best suits

keen grotto
#

Ok.. This means a lot of development again and time consuming...

Any reason why this is not available in checkout session page?

cerulean pivot
#

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

keen grotto
#

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?

cerulean pivot
#

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

keen grotto
#

ok

#

does PaymentElement support subscription mode

#

?