#.saberkhan
1 messages · Page 1 of 1 (latest)
We need to create tax rate, tax_rate ids, that will be used to collect taxes during Checkout session. So I am looking endpoint we can use to create both dynamic and static tax rates depending on customers shipping addresses.
This is the endpoint to create Tax Rates: https://stripe.com/docs/api/tax_rates/create
Do you have different end points to crete dynamic and static tax rates?
Both are created with the same endpoint:
There is a limitation of using both dynamic and static tax rates at the same time for a line items. How can we overcome this limitation?
You want to use both at the same time? Have you tried and you get an error?
According to Stripe document, both can not be used at the same time for a line item.
Common mistake
line_items.tax_rates can’t be used in combination with line_items.dynamic_tax_rates.
According to Stripe document, both can not be used at the same time for a line item.
Yes that's also my understanding
.
How can we overcome this limitation?
I don't think it's possible. And I'm not sure I understand why you would need to use both.
We do not know beforehand if buyer is from Euro zone or Asia. So how can we create a tax rate that is suitable to collect tax during Checkout session?
Just to clarify: you can pass multiple tax rates, but you cannot mix dynamic and static tax rates.
I know that
And if you really need to mix both, then I would recommend to ask the customer if they are from Europe or Asia, and then after create the Checkout Session and redirect them to the payment page.
Any other options?
No sorry.
ok