Merge branch 'cc-5709-airtime-analyzer-buy-now' into cc-5709-airtime-analyzer-buy-now-saas

This commit is contained in:
Albert Santoni 2014-06-26 19:14:07 -04:00
commit 907c53b94f
1 changed files with 9 additions and 2 deletions

View File

@ -215,12 +215,19 @@ class BillingController extends Zend_Controller_Action {
}
} catch(SoapFault $e) {
Logging::error('VIES EU VAT validation error: '.$e->faultstring);
return false;
if ($e->faultstring == "INVALID_INPUT") {
return false;
}
//If there was another error with the VAT validation service, we allow
//the VAT number to pass. (eg. SERVER_BUSY, MS_UNAVAILABLE, TIMEOUT, SERVICE_UNAVAILABLE)
return true;
}
} else {
// Connection to host not possible, europe.eu down?
Logging::error('VIES EU VAT validation error: Host unreachable');
return false;
//If there was an error with the VAT validation service, we allow
//the VAT number to pass.
return true;
}
return false;
}