#.saberkhan

1 messages · Page 1 of 1 (latest)

narrow timberBOT
gleaming magnet
#

Hi there!

#

I'm not sure I understand the question. Can you clarify?

lament siren
#

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.

gleaming magnet
lament siren
#

Do you have different end points to crete dynamic and static tax rates?

gleaming magnet
#

Both are created with the same endpoint:

lament siren
#

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?

gleaming magnet
#

You want to use both at the same time? Have you tried and you get an error?

lament siren
#

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.

gleaming magnet
#

According to Stripe document, both can not be used at the same time for a line item.
Yes that's also my understanding

#

.

lament siren
#

How can we overcome this limitation?

gleaming magnet
#

I don't think it's possible. And I'm not sure I understand why you would need to use both.

lament siren
#

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?

gleaming magnet
#

Just to clarify: you can pass multiple tax rates, but you cannot mix dynamic and static tax rates.

lament siren
#

I know that

gleaming magnet
#

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.

lament siren
#

Any other options?

gleaming magnet
#

No sorry.

lament siren
#

ok