protected function EuropeanUnionVat::getSoapClient in Commerce Core 8.2
Gets the SOAP client for VIES.
Return value
\SoapClient The SOAP client.
1 call to EuropeanUnionVat::getSoapClient()
- EuropeanUnionVat::doVerify in modules/
tax/ src/ Plugin/ Commerce/ TaxNumberType/ EuropeanUnionVat.php - Performs the tax number verification.
File
- modules/
tax/ src/ Plugin/ Commerce/ TaxNumberType/ EuropeanUnionVat.php, line 185
Class
- EuropeanUnionVat
- Provides the European Union VAT tax number type.
Namespace
Drupal\commerce_tax\Plugin\Commerce\TaxNumberTypeCode
protected function getSoapClient() {
if (!$this->soapClient) {
ini_set('default_socket_timeout', 10);
$wsdl = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
$this->soapClient = new \SoapClient($wsdl, [
'exceptions' => TRUE,
]);
}
return $this->soapClient;
}