diff --git a/src/Vat/Provider/Europa.php b/src/Vat/Provider/Europa.php index dfee3c9..19c1a97 100644 --- a/src/Vat/Provider/Europa.php +++ b/src/Vat/Provider/Europa.php @@ -16,7 +16,8 @@ class Europa implements Providable { - public const EU_VAT_API = 'https://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'; + public const EU_VAT_API = 'https://ec.europa.eu'; + public const EU_VAT_WSDL_ENDPOINT = '/taxation_customs/vies/checkVatService.wsdl'; private const IMPOSSIBLE_CONNECT_API_MESSAGE = 'Impossible to connect to the Europa SOAP: %s'; private const IMPOSSIBLE_RETRIEVE_DATA_MESSAGE = 'Impossible to retrieve the VAT details: %s'; @@ -44,7 +45,7 @@ public function __construct() public function getApiUrl(): string { - return static::EU_VAT_API; + return static::EU_VAT_API . static::EU_VAT_WSDL_ENDPOINT; } /**