#karl_checkout-stripe-tax

1 messages ยท Page 1 of 1 (latest)

fiery lindenBOT
#

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

prime hull
#

Hi ๐Ÿ‘‹

Do you have an example Checkout Session ID I could review?

narrow helm
#

Is this helpful?

#

'automatic_tax_enabled' set to false on checkout session

#

ppage_1Q5UoyE1bVn60RRzsidivfpH

prime hull
#

There is an ID in that JSON. Please copy the ID and paste it here as text

narrow helm
#

Sorry. ppage_1Q5UoyE1bVn60RRzsidivfpH

prime hull
#

Taking a look

narrow helm
#

If helpful, this one worked 2 weeks ago ppage_1Q0RerE1bVn60RRzy43WCHIf

prime hull
narrow helm
#

I believe it is this one req_BEsMU8JXmU6A6Y

prime hull
#

No, sorry that creates a billing portal session

narrow helm
#

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

prime hull
#

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

narrow helm
#

That would make a world of sense why tax isn't being added on new customers checkouts. I'll quickly refactor

prime hull
#

Okay! I'm glad we were able to track this down.

narrow helm
#

Solved! New and existing customers now go thru const session = await stripeClient.checkout.sessions.create({...})

I appreciate the rubber ducking ๐Ÿ™

prime hull
#

Wonderful! Happy to help ๐Ÿฆ† ๐Ÿ™‚