#jonecon_error

1 messages ¡ Page 1 of 1 (latest)

dense bobcatBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1300673504143867944

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tame barn
uncut dagger
#

req_4rft0Fhi7I65Oy

tame barn
#

my guess here is that tax_percent is likely exclusive, but your prices are inclusive

uncut dagger
#

Hrmmm. What do you mean by that, the tax percent is a number, so I would just assume it works backwards. Like say I pass $10 up, with a tax percent of 20 it would go tax is 1.66

tame barn
#

but is your tax inclusive or exclusive?

uncut dagger
#

tax_behavior is set to inclusive.

#

I might be missing something here

tame barn
#

if you create a price with tax_behavior set to exclusive, does that work without any errors?

uncut dagger
#

It would then calculate the tax for me, which is not my desired behavior due to final pricing between our system and stripe on edge cases being differnet

tame barn
#

lets backtrack a bit first, to answer my original question, it works fine if you create a price with tax_behavior set to exclusive?

uncut dagger
#

Yeah that was the original behavior.

#

Actually I lie, it was unspecified, but stripe was adding tax ontop of the given price, so I assume it was treating it as exclusive

tame barn
#

okay so, tax_percent has been deprecated since API v2020-08-27 so I'm not familiar with how it behaves off the top of my head. This is just my hypothesis right now - tax_percent by default is exclusive. There's no way to set it to inclusive, and tax_percent doesn't take into account whether the price's tax is inclusive/exclusive.

#

does that make sense so far?

uncut dagger
#

Ahhh I see, so you reckon the two properties are incompabtible and it's one or the other in the older API's.

Yeah I know it's quite old, I could only really find docs around the newer tax rates object

#

Yeah sweet, I'll have a look into that. Thanks for the help.

tame barn
#

feel free to reach out again if you're still having trouble