#gokul_00442

1 messages · Page 1 of 1 (latest)

magic lightBOT
#

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.

iron plinth
lusty hazel
iron plinth
#

yes, it's a parameter when creating/updating a Price object.

lusty hazel
#

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?

iron plinth
#

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.

lusty hazel
#

Ok.

You mean while creating price object in stripe dashboard there is an option, tax behavior.

Right?

iron plinth
#

yes

lusty hazel
#

hi

I am now creating a new product in product catalog

i cannot see tax_behviour

#

i am lost

lusty hazel
#

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?

iron plinth
#

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

lusty hazel
#

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?

iron plinth
#

not sure, you should test it in test mode

lusty hazel
#

not sure, really?

iron plinth
#

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.

lusty hazel
#

can you take access to my account and see what is wrong.

iron plinth
#

no, it's an anonymous Discord thread

lusty hazel
#

ok. can someone from stripe would do that.

iron plinth