public function __construct($config = null)
{
$this->config = $config;
$businessCountryKey = 'vat_calculator.business_country_code';
if (isset($this->config) && $this->config->has($businessCountryKey)) {
$this->setBusinessCountryCode($this->config->get($businessCountryKey, ''));
}
try {
$this->soapClient = new SoapClient(self::VAT_SERVICE_URL);
} catch (SoapFault $e) {
$this->soapClient = false;
}
}