sandermangel / rkvatfallback

Adds free fallback VAT check services to the default Mage 1.7+ VAT check
9 stars 3 forks source link

Fix parameters for VIES country code, check for error page on isvat #3

Closed lfolco closed 9 years ago

lfolco commented 9 years ago

The parameters for the http://ec.europa.eu/taxation_customs/vies/viesquer.do method need to have the validated number country code under 'ms', not the requesting country code. Also, I ran into an error page on the isvat service that returns a false positive (a deadline exceeded html error page), so I added a check for any html before returning true.

Finally, i replaced the tabs with spaces since there was a mix of both.