From f25091aca0da67f00b80219b0b770ccbc79d1f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=99=9A=20PH=E2=91=A6=20de=20Soria=E2=84=A2=E2=99=9B?= Date: Thu, 14 Jul 2022 22:12:33 +0930 Subject: [PATCH] Use EU_VAT_WSDL_ENDPOIN --- src/Vat/Provider/Europa.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } /**