Hi,
The url that magento natively uses to check an VAT number is crashing due to overload or even hackers almost once per month. This is the url :
http://ec.europa.eu/taxation_customs/vies/services/checkVatService?wsdl
Is there a way to disable magento for checking the VAT number, if someone want's to put a fake one he can just copy one on the internet. This would avoid getting a lot of 503 timed out errors on the server side.
I know the code is defined in _createVatNumberValidationSoapClient in app/code/core/Mage/Customer/Helper/Data.php.
/**
* WSDL of VAT validation service
*
*/
const VAT_VALIDATION_WSDL_URL = 'http://ec.europa.eu/taxation_customs/vies/services/checkVatService?wsdl';
/**
* Send request to VAT validation service and return validation result
*
* @param string $countryCode
* @param string $vatNumber
* @param string $requesterCountryCode
* @param string $requesterVatNumber
*
* @return Varien_Object
*/
public function checkVatNumber($countryCode, $vatNumber, $requesterCountryCode = '', $requesterVatNumber = '')
{
I'm not sure if i just comment this out it would work ?
Thanks in advance for your help.
Regards,
Marc