vat_number
This module provides a VAT Number field with validation.
Features
By default, VAT numbers are validated based on its format. VAT numbers can also optionally be validated against the VIES (VAT Information Exchange System) to check if the business is registered to trade cross-border within the EU.
The Webform VAT Number submodule provides a VAT Number element for Webforms, with the same validation as the field type.
Some legal info
Often it is not enough to only check the VAT to be protected against VAT fraud (like someone using the VAT of another company). In Germany for example, you need to check the VAT on a government page that forces a check against name, street, etc.
If you do not do that here you are not legally secured and if people fraud you by using other company VATS you have to pay the VAT by yourself. So it is advisable to consult a tax accountant.
Post-Installation
Install the module and add a VAT number field to an entity type, or install the Webform VAT Number submodule and add a VAT number element to a webform.
Additional Requirements
In order to connect to the VIES search engine, this module requires the SOAP PHP extension.