#Nipslips-Grimjob

1 messages ยท Page 1 of 1 (latest)

atomic rampart
#

as far as I know you shouldn't need to change anything like an ID after such a change

sturdy hull
#

Thank you.

atomic rampart
#

do you have the ID of the test payment that had no tax?

#

pi_xxxx PaymentIntent ID for example

sturdy hull
#

Yes, I have refunded it, but I'll share it.

#

One moment please.

#

pm_1L2wYoGvnxhBSdZqJCM2o7y4

#

@atomic rampart

atomic rampart
#

thanks, having a look

sturdy hull
#

Awesome! Love the support here. Thank you ๐Ÿ™‚

atomic rampart
#

hmm you're not passing automatic_tax when creating the CheckoutSession

sturdy hull
#

I see.

atomic rampart
#

also make sure to do this in test mode and not live

sturdy hull
#

Hm, but the tax information is already stored on the product that I am selling?

Is there a particular reason why I need to automatic_tax as well? I thought this was two different ways of achieving the same goal, or am I missing something?

atomic rampart
#

ok, so are you creating TaxRates manually instead?

#

there's two ways to do taxes here

#

one is that you set up the Price with the category and tax code, and then enable automatic tax on the API call to Checkout. It calculates and applies tax based on the Price and the customer details

#

the other is that you manually create a TaxRate yourself (like 25% exclusive) and then you choose to pass that into the CheckoutSession when your customer needs that tax rate applied

sturdy hull
#

Are any of these options no-code?

atomic rampart
#

if you're doing neither then no tax is going to apply

#

well you have code, you have a Node server creating your CheckoutSessions today

sturdy hull
#

Yes, but I'm just curious if one of these options (to add Tax to an existing product) can be executed without touching the code (i.e. that I can achieve it simply through the Stripe dashboard). I'm not a developer ๐Ÿ™‚

atomic rampart
#

if you were using automatic tax then sure, since you'd just change the details of the Price

sturdy hull
#

I'm just trying to understand why that approach doesn't work.

#

So the txr_1IdAqAGvnxhBSdZqbKH38Mtc tax rate has been added manually (Norway), but it isn't automatically passed to CheckoutSessions, is that it?

atomic rampart
#

Checkout only does tax if you either pass automatic_tax[enabled]: true or you pass default_tax_rates:["txr_xxx"] when you call the API to create the session

#

just creating a tax rate on the dashboard itself doesn't make it be used anywhere

sturdy hull
#

Ok, copy that, so I'll need a developer to update this to ensure that is is used.

atomic rampart
torn leafBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

atomic rampart
#

hi again