Skip to content

Commit

Permalink
Merge pull request #23 from PrestaShopCorp/fix/use-proper-api-gateway…
Browse files Browse the repository at this point in the history
…-domain

fix: proper preproduction api gateway domain
  • Loading branch information
TakeshiDaveau authored Jul 26, 2024
2 parents dbf5f51 + 7e777f0 commit afc83c3
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 afc83c3

Please sign in to comment.