#maria_api

1 messages ยท Page 1 of 1 (latest)

delicate bloomBOT
#

๐Ÿ‘‹ 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/1311654999910125579

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

winged sage
#

๐Ÿ‘‹ happy to help

gusty rover
#

Hi Tarzan! thank you

winged sage
#

Taxes are calculated based on the customer location

gusty rover
#

always?

winged sage
#

so I guess you would need to create a tax rate for non-UK customers

gusty rover
#

so the workaround is to add tax registrations for any other country?

#

that wouldnt' work as we are not actually registered in all the countries

winged sage
#

Stripe calculates tax on a transaction taking into account some or all of the following factors:

The location of the seller
The location of the customer
The type of the product sold
Whether the transaction involves a reverse charge
The status of the customer (for example, whether theyโ€™re a VAT-registered business, private person or an exempt organization)

gusty rover
#

ok I can see I can create a tax rate, but then for products, I can only assign a tax_code, not a tax_rate

#

so how do I link that tax rate to the product I'm selling?

winged sage
#

it's on prices that you need to pass the tax rates and not on products

delicate bloomBOT
tired fable
#

hi! I'm taking over this thread. let me know if you have other questions.

gusty rover
#

yes, still, the price only takes the tax behaviour but not a tax rate

#

API documentation is great as invididual models but it is not great explaining how models are related

tired fable
#

I'm not sure I understand your question. can you share more details? a concrete example would help.

gusty rover
#

sure, sorry.

#

my problem is I don't know how to assign that tax rate to product, prices or payment links for it to take effect

tired fable
#

how are you accepting payments? Checkout Session, Payment Element, something else?

gusty rover
#

Payment links

tired fable
#

Payment Links don't support Tax Rates.

gusty rover
#

can checkout sessions be shared with customers?

#

Do they have a url with UI the same as a payment link?

tired fable
#

yes it's the same. but you will need to write code to create each Checkout Session

gusty rover
#

ah ok, It hought these were to build embedded stripe payments in your website

#

where will I be able to track how many checkout sessions are created? I cannot see that in the Dashboard

#

and I cannot see the url that the checkout session has once it has been created, so how do I share it?

tired fable
gusty rover
#

ahh ok, great

#

that may be my solution then

#

thank you!!

tired fable
#

happy to help ๐Ÿ™‚

gusty rover
#

now that I have you here

#

is there any way to set up expiration datetime to these checkout sessions?

#

or only way to control that is by me running a cron job on my side and deactivating them once I need it?

tired fable
gusty rover
#

ahhh that's great