#gokul_00442
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.
- gokul_00442, 2 hours ago, 8 messages
- gokul_00442, 6 days ago, 4 messages
hi, I'd start by going through this guide : https://stripe.com/docs/payments/checkout/taxes
I went thorough this
https://stripe.com/docs/payments/checkout/taxes?tax-calculation=stripe-tax#product-and-price-setup
where should I set tax_behaviour? in the code?
yes, it's a parameter when creating/updating a Price object.
hi
we are developing it using PHP Laravel
these are the options that I am passing
$options = [
'payment_method_types' => ['card'],
'line_items' => [
[
'price' => $subscriptionPriceId,
'quantity' => 1,
],
],
'mode' => 'subscription',
'success_url' => url('/stripe-success?session_id={CHECKOUT_SESSION_ID}'),
'cancel_url' => url('/stripe-cancel'),
];
where should I set, after line items?
no.
at some point you are creating a Price object and that's where you got $subscriptionPriceId from; it's that code that creates the Price that would use tax_behavior.
Ok.
You mean while creating price object in stripe dashboard there is an option, tax behavior.
Right?
yes
hi
I am now creating a new product in product catalog
i cannot see tax_behviour
i am lost
I set tax to be exclusive
but I am still not getting
see my product price is 100
if a user selects uk billing address tax should be applied thats vat 20% final amount is 120
if a user selects any other location no tax should be added
how to acheive this?
that's not really how it works, tax is more complicated than that.
you should just set up your tax registrations for the country you operate in, and let Checkout+Tax handle calculating what tax needs to be charged
i have already added UK in that
now I stay in India, I checkout what will happen.
tax should be applied to original price? or Not?
not sure, you should test it in test mode
not sure, really?
yes, I'm not sure, I don't have access to your account or the specific circumstances of what tax registrations you have and how your Price objects are set up, and there's many things that influence how Checkout and Tax will act . You have access to this and as a developer can test out your scenario in test mode.
can you take access to my account and see what is wrong.
no, it's an anonymous Discord thread
ok. can someone from stripe would do that.
possibly, that's a question for a support ticket at https://support.stripe.com/?contact=true