vat icon indicating copy to clipboard operation
vat copied to clipboard

Add VAT modulus11 check for countries

Open gemal opened this issue 2 years ago • 4 comments

some countries has a modulus 11 check build into the number The VAT validator should be able to check that

gemal avatar Sep 13 '21 07:09 gemal

Do you accept pull requests?

gemal avatar Sep 30 '21 12:09 gemal

@dannyvankooten would you accept pull request for this?

gemal avatar Nov 15 '21 16:11 gemal

Hey @gemal,

Yes, definitely! Anything that could invalidate VAT numbers before sending a request off to the (sometimes somewhat unreliable) VIES API is encouraged, in my book. :+1:

Do you have a source on which countries have such a format? GB, from the looks of it?

dannyvankooten avatar Nov 16 '21 10:11 dannyvankooten

possible code could be used from here: https://gist.github.com/svschannak/e79892f4fbc56df15bdb5496d0e67b85

gemal avatar Nov 23 '21 15:11 gemal