Open olekhy opened 10 years ago
may be add more error messages to validator? I found here: http://forums.oscommerce.de/topic/73224-fehler-abfrage-vat-intracom-number/page-3
try {
$result = $client->checkVat($params);
} catch (SoapFault $e) {
$result = $e->faultstring;
$regex = '/\{ \'([A-Z_]*)\' \}/';
$n = preg_match($regex, $result, $matches);
$result = $matches[1];
$faults = array(
'INVALID_INPUT' => 'The provided CountryCode is invalid or the VAT number is empty',
'SERVICE_UNAVAILABLE' => 'The SOAP service is unavailable, try again later',
'MS_UNAVAILABLE' => 'The Member State service is unavailable, try again later or with another Member State',
'TIMEOUT' => 'The Member State service could not be reached in time, try again later or with another Member State',
'SERVER_BUSY' => 'The service cannot process your request. Try again later.'
);
$this->error($faults[$result]);
return false;
}
hu hu... :baby:
@olekhy Sorry my apologies.... For some reason github did not email me the notification. I'll attempt to look at tonight.
thx
Hi Author!
How we need to handle until soap server is buzzy? Hit from traced exception: