Skip to content

Commit

Permalink
fix: proper preproduction api gateway domain
Browse files Browse the repository at this point in the history
  • Loading branch information
TakeshiDaveau committed Jul 26, 2024
1 parent ba79211 commit 7e777f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Builder/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Builder/UrlBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 7e777f0

Please sign in to comment.