ddeboer / vatin

Validate VAT identification numbers
MIT License
136 stars 37 forks source link

Norway VatIds may contain MVA #31

Closed siemendev closed 4 years ago

siemendev commented 4 years ago

Hi there! The VatId Regex-Pattern for Norway is not correct. According to this: "9 digits and the letters 'MVA' to indicate VAT registration" the vat id for norway may include a "MVA" at the end of the VatId. Customers of our online-shop that include this in their vat id input (which is parsed through "ddeboer/vatin") get the notification, that their entered vat id in invalid, which is not the expected behavior.

I try to open up a pull request to get this asap into master since we're heavily depending on the vatin-bundle package from you. By the way: Great bundle, thanks for the effort you put in there!

siemendev commented 4 years ago

A quick google search to provide further information: https://www.avalara.com/vatlive/en/eu-vat-rules/eu-vat-number-registration/eu-vat-number-formats.html