#yodasgerbil-checkout-tax

1 messages · Page 1 of 1 (latest)

supple orchid
unborn nova
#

const session = await stripe.checkout.sessions.create({
success_url: 'https://localhost:8888/success',
cancel_url: 'https://example.com/cancel',
payment_method_types: ['card'],
automatic_tax: { enabled: false },
line_items: [
{
price: 'price_1JcWhVIldEPTOPtqBY0v053J',
quantity: 3,
tax_rates: ['txr_1JcCIsIldEPTOPtq1RyS9v96'],
},
],
mode: 'payment',
});

supple orchid
#

Okay so it usually means you add a tax rate that's inclusive for example and the Price has tax_behavior exclusive

#

seems to be the case here, your tax rate is not inclusive but the Price has tax_behavior: 'inclusive'

#

looks like one of the two is misconfigured

unborn nova
#

ok, so I need to reconfigure in Dashboard

supple orchid
#

yes!

unborn nova
#

Seems tax rate is set to exclusive

#

do I need to add something to the code?

supple orchid
#

not entirely sure what you mean

#

you can't combine a tax rate and a price with different tax behaviour

#

you want that tax rate to be inclusive not exclusive
Otherwise you want that Price to have tax_behavior: 'exclusive'

#

it's one or the other

unborn nova
#

thank you, understood where the conflict is

#

*understand