#jonecon_error
1 messages ¡ Page 1 of 1 (latest)
đ 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.
hi there, can you share the request id [0] where you're seeing that error? it'd look like req_xxx
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
req_4rft0Fhi7I65Oy
my guess here is that tax_percent is likely exclusive, but your prices are inclusive
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
but is your tax inclusive or exclusive?
if you create a price with tax_behavior set to exclusive, does that work without any errors?
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
lets backtrack a bit first, to answer my original question, it works fine if you create a price with tax_behavior set to exclusive?
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
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?
i think you'll want to look into using tax rates instead where you can explicitly define if the tax is inclusive / exclusive. Tax rates replace tax_percent : https://docs.stripe.com/billing/taxes/tax-rates
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.
feel free to reach out again if you're still having trouble