drahosistvan / vatvalidation

A simple wrapper for VIES VAT Validation WebService.
MIT License
13 stars 6 forks source link

Doesn't validate format for Swiss VAT IDs #5

Closed cocowalla closed 6 years ago

cocowalla commented 6 years ago

Take the VAT ID for Swiss as an example: CHE-105.918.070 MWST.

Attempts to validate it result in WrongVatNumberFormatException. This is the same if you remove spaces, hyphens and dots.

Looking at the source, it does look like Switzerland isn't handles by the regex pattern.

cocowalla commented 6 years ago

Gah, Switzerland isn't in the EU... I seriously need more coffee!

drahosistvan commented 6 years ago

np ;)