Closed msolda2 closed 5 years ago
Which tax origin have you set while configuring the library? Is there any?
--
Valerian Saliou CTO at Crisp
On 12 Mar 2019, at 6:10 PM, msolda2 notifications@github.com wrote:
SalesTax.hasSalesTax("US") as well as any state that has sales tax such as SalesTax.hasSalesTax("US", "CA") returns as false
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
SalesTax.setTaxOriginCountry("US")
but your docs says this anyway:
Notice: this method is origin-neutral. It means it return values regardless of your configured tax origin country.
You're looking for the SalesTax.hasStateSalesTax("US", "CA")
method rather; can you check it works? The US as a country does not have any country-wide sales tax, which is why the SalesTax.hasSalesTax("US")
method returns zero. Rather, you need to check per-state with the appropriate method.
Got it, thanks!
SalesTax.hasSalesTax("US") as well as any state that has sales tax such as SalesTax.hasSalesTax("US", "CA") returns as false