Now you can validate VAT using the European service called VIES, to ensure it exists. Only require this gem and call validate_as_vat_number on your VAT field, in an Active Record object.
Alessandro Dal Grande, Marco Sanson
gem "validates_as_vat_number", "~> 1.0.2"