Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 775 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 775 Bytes

JVatValidator

About

This is a standalone Java library for VAT (Value-Added Tax) number formal validation. It doesn't connect to any web service. It can be used to verify if an input value is a valid VAT number with respect of the formal rules of a certain country.

Important
This library does not verify if the input value is actually assigned to a certain company or organization.

Usage

This will validate 11198699 value against Romanian VAT patterns:

boolean isValid = VatValidator.validate("RO", "11198699");

The first argument is the ISO-3166 country code, the second one is the value to be validated.

Acknowledgement

The validation source is a Javascript file found here