#eric_code

1 messages ¡ Page 1 of 1 (latest)

vagrant shoalBOT
#

👋 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/1357696755210129408

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

edgy swallow
#

Hi, let me help you with this.

steady bolt
#

Thank you

edgy swallow
#

I am not a tax expert but I think you can calculate taxes just for one country, which is where the customer is.

steady bolt
#

I am looking to utilize the automatic tax for shipping costs, I need to have the shipping costs as a line item. Then set the taxrate_id to 'txcd_92010001' to the tax shows up in the tax line. I just can't seem to find out where to set the shipping origin address and shipping destination address?

edgy swallow
#

Do you need both addresses for tax calculation?

steady bolt
#

Yes

#

It won't always be shipping from the same address

edgy swallow
#

I understand you might need to calculate shipping amount using both addresses, which in turn impacts taxes. But the customer only pays taxes in one country in a transaction.

steady bolt
#

Correct

edgy swallow
#

So, you need both addresses to calculate the shipping costs. Stripe doesn't calculate shipping costs, and they need to be provided by you. So there's no need to provide the origin address to Stripe.

steady bolt
#

I am items shipping from Province to Province in Canada and State to State in US

#

The customer is not paying for the product, just the shipping costs

#

I need a way to display an invoice for just the shipping costs.

#

Is there a way to manually set the shipping costs and manual set the tax amount and description?

edgy swallow
#

If you're not planning to sell any other items on the session - that wouldn't work.

steady bolt
#

The shipping costs will vary, as shipping costs fluctuate daily. I cannot use a price object.

#

And the origin and destination will always change.

vagrant shoalBOT
edgy swallow
sacred moon
#

Using price_data as @edgy swallow indicates lets you define your price ad-hoc as you calculate your rates.

steady bolt
#

Ok let me check

#

Can you provide me with an example?

sacred moon