Skip to content

Commit

Permalink
[ECP-8959] Fix values being sent in headers (#2488)
Browse files Browse the repository at this point in the history
* fix values being sent in headers

* fix unit tests
  • Loading branch information
RokPopov authored Feb 8, 2024
1 parent 62c9ca5 commit 2bb0e64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1171,9 +1171,9 @@ public function buildRequestHeaders()
{
$magentoDetails = $this->getMagentoDetails();
return [
'external-platform-name' => $this->getModuleName(),
'external-platform-name' => $magentoDetails['name'],
'external-platform-version' => $this->getModuleVersion(),
'merchant-application-name' => $magentoDetails['name'],
'merchant-application-name' => $this->getModuleName(),
'merchant-application-version' => $magentoDetails['version'],
'merchant-application-edition' => $magentoDetails['edition'],
];
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Helper/DataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ public function testGetMagentoDetails()
public function testBuildRequestHeaders()
{
$expectedHeaders = [
'external-platform-name' => 'adyen-magento2',
'external-platform-name' => 'magento',
'external-platform-version' => '1.2.3',
'merchant-application-name' => 'magento',
'merchant-application-name' => 'adyen-magento2',
'merchant-application-version' => '2.x.x',
'merchant-application-edition' => 'Community'
];
Expand Down

0 comments on commit 2bb0e64

Please sign in to comment.