#wullvie-checkout-tax
1 messages · Page 1 of 1 (latest)
Is it always 0?
hey duchess
Or are there situations where it is non-zero
havent been able to get anything but 0
any address i put in too
here's the URL idk if that will be helpful - this way tho you can see what im looking at
haha i was just typing "im not using products maybe that's why"
Yup
ok so the "products" literally need to be in Stripes dashboard setup
can't just pass in product_data
When calculating tax, Stripe Tax uses information stored on the Products and Prices APIs to determine the right rates and rules.
Correct
Oh sorry actually I don't think you need to
If you don’t want to create your products and prices upfront, you can pass the price_data.tax_behavior and product_data.tax_code parameters in your Checkout session.
hmm
So you just need to add tax_code
here: this is what im sending to the URL
ohhhh ok
i'm not passing a tax_code right now just this
yeah I see tax_behavior
price_data: {
product_data: {
name: item.itemName,
description: item.itemOptions,
images: [
item.itemImageUrl
]
},
unit_amount_decimal: item.itemPrice * 100,
tax_behavior: 'exclusive',
currency: currencyCode,
},
quantity: item.itemQuantity,
adjustable_quantity: {
enabled: true,
minimum: 1
}
But you also need tax_code I believe
gotcha ok
does that ID get generated once you verify tax info on stripe? or is that something we have to (as a biz) find ourselves
that has to be it tho for sure. tax_code should fix this
boom
ok cool I'll give this a go but i think you're right it'll fix this
thanks a bunch!
No problem
Make sure you've run through all these steps too: https://stripe.com/docs/tax/set-up
You'll need your registrations set up
yup we did that already so should be ok
let me give that a try real fast
wullvie-checkout-tax
hmm I'm still getting 0
product_data: {
name: item.itemName,
description: item.itemOptions,
images: [
item.itemImageUrl
],
tax_code: 'txcd_99999999'
},
i see the "status": "requires_location_inputs" for automatic_tax but i assumed this was just awaiting a shipping address input on the page
👋 stepping in
Give me a moment to get caught up
sounds good
So I see that you have registered in Missouri to collect taxes
The tax threshold monitor?
Im not a business owner but i believe it is based out of Chicago Illinois
Some places have special regulations with Tax depending on the place and tax category where you will see tax is $0. I'm looking at your example but I wonder if the registration is causing the $0 assessment.
Can you complete a Checkout Session where you see $0 tax assessed and then provide me that Checkout Session ID?
just complete a payment?
Yep
cs_test_a1P0NCMpGkynLGOkSk5WM4CngZCQkGxzqmbFYxmbAp2DJowBttGAEXveH3
that should be it - from events checkout.session.completed
Yep thanks
Looking
Cool
So if you go to your Dashboard for that PaymentIntent here: https://dashboard.stripe.com/test/payments/pi_3McXRdFHHtFk8UX50sqXni63
You can see that it states Taxability: not registered
So yeah the issue here is with your registrations
got it
You want to go to https://dashboard.stripe.com/test/settings/tax
And set up all the places you want to collect taxes from
so would we be required to register in each state?
assuming they feel they might do sales in any state
You should be able to register for the US in general, you don't need to do every state individually if I remember correctly
(Haven't done this myself in a while)
Yep that should do the trick
everything else seems to be setup just fine
Agreed
ok great - thanks again for the help much appreciated
You could try a Missouri address and see if that works
That would be an easy test you can do now with the current registration
ok I will lol
so I added US Illinois in test mode, and it works for IL but not for other states
so definitely progress we'll just figure out how to get it to work for all states, then intl. from there
Sounds good
If you need more help on the specific tax regulations for states I would recommend reaching out to our Support team: https://support.stripe.com/contact/login
They will know more specifics for how it works between the states
ok perfect
We just focus on the API here 🙂
haha all good - thanks again