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 c8275459 authored by attilak's avatar attilak

- Remove client set logger

 - Pass api key to initializeClient function isntead of setting the key
directly
parent 9e58f0a0
...@@ -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