#Nipslips-Grimjob
1 messages ยท Page 1 of 1 (latest)
as far as I know you shouldn't need to change anything like an ID after such a change
Thank you.
do you have the ID of the test payment that had no tax?
pi_xxxx PaymentIntent ID for example
Yes, I have refunded it, but I'll share it.
One moment please.
pm_1L2wYoGvnxhBSdZqJCM2o7y4
@atomic rampart
This should be the product --> https://share.getcloudapp.com/nOuXE16R
thanks, having a look
Awesome! Love the support here. Thank you ๐
hmm you're not passing automatic_tax when creating the CheckoutSession
I see.
you have to turn it on so that we calculate tax based on the Price and customer details https://stripe.com/docs/payments/checkout/taxes?tax-calculation=stripe-tax#new-customers
also make sure to do this in test mode and not live
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?
ok, so are you creating TaxRates manually instead?
if so that's fine but again, you need to pass them into the CheckoutSession so they're used https://stripe.com/docs/payments/checkout/taxes?tax-calculation=tax-rates
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
Are any of these options no-code?
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
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 ๐
if you were using automatic tax then sure, since you'd just change the details of the Price
Ok, thank you.
Just one final question. Can you please just explain why price_1JyZzsGvnxhBSdZqs2vjT98F isn't adding tax on the frontend, when txr_1IdAqAGvnxhBSdZqbKH38Mtc (tax rate) has been added to that product? During checkout, Norway (which is associated with this tax rate) is selected as the country, as seen here --> https://share.getcloudapp.com/X6uRW5bX
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?
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
Ok, copy that, so I'll need a developer to update this to ensure that is is used.
if you don't have a developer you can use payment links too, they wrap Checkout and support automatic tax, you'll see it an option when going through the wizard for creating the link
https://stripe.com/docs/payments/payment-links
https://support.stripe.com/questions/does-stripe-tax-work-with-payment-links
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
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
hi again