#nacho_446
1 messages · Page 1 of 1 (latest)
What's the ID of the session? cs_xxx?
Where can I get the ID of the session? am not too familiar with stripe
Are you creating the session directly?
On my code yes, stripe.checkout.session.create
Ok, and in the response there'll be an id field
I enabled tax collection and registered my business to collect taxes from Canada
Ok let me generate a new session to get the ID
cs_test_a1RAhxszI3kZenF1eYnEwtPQUvEkPudpfaXGxNrOGPpLlCipQueZmU0qBW
Ok, and what is unexpected here?
We'll calculate tax due when the customer enters their address on the payment page
I suspect it may be because you didn't specify a tax_behavior in your line items: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-tax_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
None
Wait if on test mode does it show the real tax price?
Because my issue is it’s not showing the tax price just $0
It should still calculate a tax according to your tax registration yes. Have you definitely registered Canada in the Dashboard?
Yes
I don't see it here: https://dashboard.stripe.com/test/tax/registrations
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
So can the tax registration be an issue why the tax is not calculated?
My boss said his done the registration
Ok thanks for your help i will reach out to him to see if it’s registered well on his end
Yep, we only calclate tax for tax obligations you register in the Dashboard. You have none right now
Ok just to note I use stripe to collect payment for services from my site not products on stripe dashboard
I understand that, but if you're using Stripe Tax then you manage your tax obligations in the Dashboard
Checkout computes tax due on payments via those registrations
This is all explained in the docs: https://stripe.com/docs/tax/registering