Skip to content

Commit

Permalink
Use EU_VAT_WSDL_ENDPOIN
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 authored Jul 14, 2022
1 parent 40bd39d commit f25091a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Vat/Provider/Europa.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit f25091a

Please sign in to comment.