#oftysterista_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/1338396500711178281
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello
Sure, so you want to manually create tax rates and only apply them for your customers in Singapore?
For one time purchase, I'd recommend using Invoicing API so that you can set default_tax_rates on the invoice object https://docs.stripe.com/api/invoices/create?lang=cli#create_invoice-default_tax_rates, or tax_rates on its individual invoice item.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For recurring payments, you can also specify default_tax_rate (https://docs.stripe.com/api/subscriptions/create?lang=cli#create_subscription-default_tax_rates) when creating a subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is the default tax rate will be calculated automatically?
For one time purchase. I usually immediately create a payment intent
PaymentIntent API doesn't support tax rates
https://docs.stripe.com/tax/custom but you can use the tax calculations API to calcualte the tax and use the caclulated amount to create a PaymentIntent
which one is better?
should i create invoice first?
so the flow is
create invoice with default tax rate -> create PI
or
create a Tax Calculation -> create PI
is that so?
I'd recommend Invoiceing API. But it's entirely up to you to decide which API work best for your use case.