We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit 5ea387ef authored by Rik ter Beek's avatar Rik ter Beek Committed by GitHub

Merge pull request #350 from Adyen/release-2-4-0-fix

Resolve PR comments
parents 9e58f0a0 c8275459
...@@ -60,10 +60,10 @@ class TransactionPosCloudSync implements ClientInterface ...@@ -60,10 +60,10 @@ class TransactionPosCloudSync implements ClientInterface
$this->adyenLogger = $adyenLogger; $this->adyenLogger = $adyenLogger;
$this->storeId = $storeManager->getStore()->getId(); $this->storeId = $storeManager->getStore()->getId();
// initialize client
$client = $this->adyenHelper->initializeAdyenClient($this->storeId);
$apiKey = $this->adyenHelper->getPosApiKey($this->storeId); $apiKey = $this->adyenHelper->getPosApiKey($this->storeId);
$client->setXApiKey($apiKey);
// initialize client
$client = $this->adyenHelper->initializeAdyenClient($this->storeId, $apiKey);
//Set configurable option in M2 //Set configurable option in M2
$posTimeout = $this->adyenHelper->getAdyenPosCloudConfigData('pos_timeout', $this->storeId); $posTimeout = $this->adyenHelper->getAdyenPosCloudConfigData('pos_timeout', $this->storeId);
......
...@@ -85,9 +85,6 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface ...@@ -85,9 +85,6 @@ class AdyenInitiateTerminalApi implements AdyenInitiateTerminalApiInterface
$client->setTimeout($posTimeout); $client->setTimeout($posTimeout);
} }
// assign magento log
$client->setLogger($adyenLogger);
$this->client = $client; $this->client = $client;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment