vue-stripe / vue-stripe

Stripe Checkout & Elements for Vue.js
https://vuestripe.com
MIT License
1.08k stars 148 forks source link

Support for automatic_tax parameter #241

Closed gusly closed 2 years ago

gusly commented 2 years ago

I started using vue-stripe, but noticed that it's not possible to set "automatic_tax parameter" (https://stripe.com/docs/tax/checkout) through the props. Enabling that will add tax when paying, if the product prices are set to have the exclusive tax behavior (and depending on other account settings).

Would it be possible to add support for it?

jofftiquez commented 2 years ago

Hi based on the docs you can do this via the Sessions API. You looking for the the automatic_tax option.

It is really not available in the .redirectToCheckout options.


After creating a Session with automatic_tax enabled, you can follow this guide to checkout your session