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?
- Navigate to Setup > Custom Client Fields and create a
VATNumber|VAT Numbertext 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
$this->vat = CustomField::getValueFromCustomFields('VATNumber', $params['customfields']);
- Retry domain registration.