#standeman_best-practices
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/1282700864414416990
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi 👋 you definitely can for your Checkout Sessions. You'd pass your Tax Rate in via the tax_rates or dynamic_tax_rates parameters inside of the line_items array:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-dynamic_tax_rates
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-tax_rates
Or if you're creating Subscriptions with those, since you mentioned using the Customer Portal, you can add a default_tax_rate at the Subscription level via subscription_data.default_tax_rate
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-subscription_data-default_tax_rates
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can I create these dynamic tax rates somwehere? And are they automatically filled in depending on the country or do I have to check the country of the customer?
That field accepts Tax Rate objects, and is dynamic based on customer address:
line_items.dynamic_tax_rates
array of strings
The tax rates that will be applied to this line item depending on the customer’s billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
So you'd follow the process shown in our guide for creating Tax Rates to create those:
https://docs.stripe.com/billing/taxes/tax-rates
Thank you. I was wondering in my question if they can be created through the stripe dashboard. If not, that's ok.
I found it
thanks
Last question:
Can I still keep the automatic tax enabled and use dynamic tax for my stripe checkout?
Will the future payments for the subscription for the customer that used stripe checkout with dynamic tax use the same tax and not go to automatic tax for the second payment? (Unless maybe the customer changes their billing address in the customer portal?)
No, Stripe Tax (automatic tax) and Tax Rates (dynamic tax) are two distinct features that don't combine, you would use one or the other.
Yes, if you create a Subscription with Tax Rates and automatic tax disabled, automatic tax will remain disabled unless you enable it. You can use Test Clocks to fast forward a testmode Subscription and see exactly how this all behaves based on your account settings:
https://docs.stripe.com/billing/testing/test-clocks
Thank you!
Last question for real now I promise:
In the documentation it says:
"Create a catalog of tax rates that meet the requirements for the jurisdictions that you do business in. For example, if you operate in Europe, you might want to create a catalog of tax rates for OSS VAT."
What is meant by creating a catalog of tax rates? How do I do that?
That means creating a Tax Rate to cover every jurisdiction and tax amount where you need to collect taxes from your customers, and is accomplished by creating multiple Tax Rate objects.