diff --git a/src/Builder/UrlBuilder.php b/src/Builder/UrlBuilder.php index 4b7e566..4e84517 100644 --- a/src/Builder/UrlBuilder.php +++ b/src/Builder/UrlBuilder.php @@ -110,7 +110,7 @@ public function buildAPIGatewayUrl() return 'https://api-' . $this->getEnvName() . '.billing.integration.prestashop.com'; break; case 'preprod': - return 'https://api.billing-preproduction.prestashop.com'; + return 'https://api.billing.preproduction.prestashop.com'; break; default: return 'https://api.billing.prestashop.com'; diff --git a/tests/Unit/Builder/UrlBuilderTest.php b/tests/Unit/Builder/UrlBuilderTest.php index d4e5e24..4d0d8c8 100644 --- a/tests/Unit/Builder/UrlBuilderTest.php +++ b/tests/Unit/Builder/UrlBuilderTest.php @@ -105,7 +105,7 @@ public function testBuildAPIGatewayUrl() $this->assertEquals($builder->buildAPIGatewayUrl(), 'https://api-prestabulle6.billing.integration.prestashop.com'); $builder = new UrlBuilder('preprod'); - $this->assertEquals($builder->buildAPIGatewayUrl(), 'https://api.billing-preproduction.prestashop.com'); + $this->assertEquals($builder->buildAPIGatewayUrl(), 'https://api.billing.preproduction.prestashop.com'); $builder = new UrlBuilder(); $this->assertEquals($builder->buildAPIGatewayUrl(), 'https://api.billing.prestashop.com'); }