ibericode / vat

PHP library for dealing with European VAT
https://packagist.org/packages/ibericode/vat
MIT License
425 stars 61 forks source link

RegEx for Northern Ireland (XI) #42

Closed KaHa6uc closed 2 years ago

KaHa6uc commented 3 years ago

As desribed at https://ec.europa.eu/taxation_customs/vies/faqvies.do#item_11 :

'XI' => '(GD\d{3}|HA\d{3}|\d{9}|\d{12})'
dannyvankooten commented 2 years ago

This library only allows for validation of VAT numbers which are EU member states, which Northern Ireland is not. Correct me if I'm wrong please.

lowerends commented 3 months ago

Hi,

I think Northern Ireland is a special case, since in practice it is considered EU for VAT and tax related issues. Moreover the VIES database allows to lookup VAT numbers for Northern Ireland: https://ec.europa.eu/taxation_customs/vies/#/vat-validation. So, basically, all that this would required is adding XI indeed to the list of countries in the Validator file as @KaHa6uc describes.

Any change this gets revisited?

Thanks!