Closed nacr closed 8 years ago
The validation will fail, because it uses a SOAP service provided by the EU, which can only validate european VAT IDs.
So in that case the form validation will fail correct?
So it would be interesting to verify if the $countryCode is present in $taxRules and then respond accordingly?
Yeah right. I think the best (and to my knowledge) most common solution is to only give the ability to enter a VAT ID when the selected country is in the EU.
I just updated the package to provide a new method shouldCollectVAT($countryCode)
.
You can use this method to see if you need to collect taxes for the given country code.
Cool m:8ball: tks :+1:
This is a question not a issue, what will be the behavior of vat validation if we try to validate a vat number that is not UE?
Tks