#karl_checkout-stripe-tax
1 messages ยท Page 1 of 1 (latest)
๐ 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/1291071140965646409
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐
Do you have an example Checkout Session ID I could review?
Is this helpful?
'automatic_tax_enabled' set to false on checkout session
ppage_1Q5UoyE1bVn60RRzsidivfpH
There is an ID in that JSON. Please copy the ID and paste it here as text
Sorry. ppage_1Q5UoyE1bVn60RRzsidivfpH
Taking a look
If helpful, this one worked 2 weeks ago ppage_1Q0RerE1bVn60RRzy43WCHIf
Can you share the request ID for the request that created this checkout session? It doesn't look like the automatic_tax parameter was provided:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-automatic_tax-enabled
I believe it is this one req_BEsMU8JXmU6A6Y
No, sorry that creates a billing portal session
Hey @prime hull one moment, I think there may have been a use of .redirectToCheckout for new customers that was conflicting with existing customers (that had cancelled previously) I'm going to investigate that for a bit and report back here in a bit
Okay, the .redirectToCheckout method is deprecated and has been for a while. I don't think that even supports Stripe Tax.
We strongly recommend server-side Checkout Session creation
That would make a world of sense why tax isn't being added on new customers checkouts. I'll quickly refactor
Okay! I'm glad we were able to track this down.
Solved! New and existing customers now go thru const session = await stripeClient.checkout.sessions.create({...})
I appreciate the rubber ducking ๐
Wonderful! Happy to help ๐ฆ ๐