#wullvie-checkout-tax

1 messages · Page 1 of 1 (latest)

mental coveBOT
compact gyro
#

Is it always 0?

tall seal
#

hey duchess

compact gyro
#

Or are there situations where it is non-zero

tall seal
#

havent been able to get anything but 0

compact gyro
#

Got it

#

Can you share an example checkout session id?

compact gyro
#

Gotcha. Let me take a look

#

Ah

#

You need to create prices

#

and products

tall seal
#

haha i was just typing "im not using products maybe that's why"

compact gyro
#

Yup

tall seal
#

ok so the "products" literally need to be in Stripes dashboard setup

#

can't just pass in product_data

compact gyro
#

When calculating tax, Stripe Tax uses information stored on the Products and Prices APIs to determine the right rates and rules.

#

Correct

tall seal
#

ahh ok

#

last question while i have you if not a big deal

compact gyro
#

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.

tall seal
#

hmm

compact gyro
#

So you just need to add tax_code

tall seal
#

here: this is what im sending to the URL

#

ohhhh ok

#

i'm not passing a tax_code right now just this

compact gyro
#

yeah I see tax_behavior

tall seal
#

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
}

compact gyro
#

But you also need tax_code I believe

tall seal
#

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

compact gyro
tall seal
#

boom

#

ok cool I'll give this a go but i think you're right it'll fix this

#

thanks a bunch!

compact gyro
#

No problem

#

You'll need your registrations set up

tall seal
#

yup we did that already so should be ok

tall seal
#

let me give that a try real fast

versed shadow
#

wullvie-checkout-tax

tall seal
#

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

drifting cave
#

👋 stepping in

tall seal
#

hey bismark

#

bismarck** lol

drifting cave
#

Give me a moment to get caught up

tall seal
#

sounds good

drifting cave
#

So I see that you have registered in Missouri to collect taxes

tall seal
#

The tax threshold monitor?

#

Im not a business owner but i believe it is based out of Chicago Illinois

drifting cave
#

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?

tall seal
#

just complete a payment?

drifting cave
#

Yep

tall seal
#

cs_test_a1P0NCMpGkynLGOkSk5WM4CngZCQkGxzqmbFYxmbAp2DJowBttGAEXveH3

#

that should be it - from events checkout.session.completed

drifting cave
#

Yep thanks

#

Looking

#

Cool

#

You can see that it states Taxability: not registered

#

So yeah the issue here is with your registrations

tall seal
#

got it

drifting cave
#

And set up all the places you want to collect taxes from

tall seal
#

so would we be required to register in each state?

#

assuming they feel they might do sales in any state

drifting cave
#

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)

tall seal
#

haha ok

#

alright I'll pass that along and that should fix this i think

drifting cave
#

Yep that should do the trick

tall seal
#

everything else seems to be setup just fine

drifting cave
#

Agreed

tall seal
#

ok great - thanks again for the help much appreciated

drifting cave
#

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

tall seal
#

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

drifting cave
#

Sounds good

#

They will know more specifics for how it works between the states

tall seal
#

ok perfect

drifting cave
#

We just focus on the API here 🙂

tall seal
#

haha all good - thanks again