Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VAT modulus11 check for countries #41

Open
gemal opened this issue Sep 13, 2021 · 4 comments
Open

Add VAT modulus11 check for countries #41

gemal opened this issue Sep 13, 2021 · 4 comments

Comments

@gemal
Copy link
Contributor

gemal commented Sep 13, 2021

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

@gemal
Copy link
Contributor Author

gemal commented Sep 30, 2021

Do you accept pull requests?

@gemal
Copy link
Contributor Author

gemal commented Nov 15, 2021

@dannyvankooten would you accept pull request for this?

@dannyvankooten
Copy link
Member

dannyvankooten commented Nov 16, 2021

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. 👍

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

@gemal
Copy link
Contributor Author

gemal commented Nov 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants