Question
Some domain registries (e.g. DNS PT, ITNIC) require submitting a VAT number when registering domains under company contact handles. WHMCS doesn't include this data field by default, therefore domain registration may fail with the "Invalid VAT number" error.
How to provide a VAT number during domain registration?
Answer
- Navigate to Setup > Custom Client Fields and create a
VATNumber|VAT Number
text field.
Make sure it appears in the admin area on the Client Profile tab - Add a valid VAT of your client to their profile
- On your WHMCS installation uncomment the following line in
/whmcs/modules/registrars/openprovider/OpenProvider/API/Customer.php
in the__construct
method:
$this->vat = CustomField::getValueFromCustomFields('VATNumber', $params['customfields']);
- Retry domain registration.