0

I'm trying to implement Stripe Checkout without server integration (client-only). It seems like I cannot set tax rates when I call redirectToCheckout.

I've searched similar questions like the following but they aren't client-only and are using Sessions:

Stripe Checkout - Create Session - Apply Tax Rates on subscriptions

Tax Rate in new Stripe Checkout

This documentation seems to mention tax rates in Stripe Checkout but is using Sessions as well. I couldn't find any documentation saying it is not possible so I've decided to ask here.

Thanks in advance!

tkrhgch
  • 343
  • 1
  • 4
  • 14

1 Answers1

2

You cannot use Stripe Tax or tax rates with client-only Checkout. This is one of many limitations highlighted here. Stripe generally advises against using client-only Checkout for these reasons.

If you'd prefer to integrate without a server component, then I recommend using Payment Links, which support taxes, instead.

Jonathan Steele
  • 1,502
  • 4
  • 7
  • Thank you Jonathan. I missed that part and am glad to know it isn't possible for sure. As for Payment Links, from the documentation, I assume that it is only possible to integrate with Stripe Tax (which is a paid service) and not plain Tax Rates? I've found it mentioned in the link you shared: https://stripe.com/docs/payments/payment-links#taxes – tkrhgch Jan 06 '22 at 23:57
  • 1
    Yep, Payment Links only has support for Stripe Tax. If you'd prefer to use tax rates then you'd need to create a Checkout Session (server-side). – Jonathan Steele Jan 07 '22 at 09:31