Skip to content

Commit

Permalink
[ECP-8703] Fix missing method definitions (#2306)
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp authored Oct 25, 2023
1 parent 2454b7f commit f8b4f62
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,14 +433,14 @@ public function getHmac($storeId = null)
{
switch ($this->isDemoMode($storeId)) {
case true:
$hmacTest = $this->getAdyenHppConfigData('hmac_test', $storeId);
$hmacTest = $this->configHelper->getAdyenHppConfigData('hmac_test', $storeId);
if (is_null($hmacTest)) {
return null;
}
$secretWord = $this->_encryptor->decrypt(trim((string) $hmacTest));
break;
default:
$hmacLive = $this->getAdyenHppConfigData('hmac_live', $storeId);
$hmacLive = $this->configHelper->getAdyenHppConfigData('hmac_live', $storeId);
if (is_null($hmacLive)) {
return null;
}
Expand All @@ -459,7 +459,7 @@ public function getHmac($storeId = null)
*/
public function isDemoMode($storeId = null)
{
return $this->getAdyenAbstractConfigDataFlag('demo_mode', $storeId);
return $this->configHelper->getAdyenAbstractConfigDataFlag('demo_mode', $storeId);
}

public function isMotoDemoMode(array $motoMerchantAccountProperties): bool
Expand All @@ -477,13 +477,13 @@ public function isMotoDemoMode(array $motoMerchantAccountProperties): bool
public function getAPIKey($storeId = null)
{
if ($this->isDemoMode($storeId)) {
$encryptedApiKeyTest = $this->getAdyenAbstractConfigData('api_key_test', $storeId);
$encryptedApiKeyTest = $this->configHelper->getAdyenAbstractConfigData('api_key_test', $storeId);
if (is_null($encryptedApiKeyTest)) {
return null;
}
$apiKey = $this->_encryptor->decrypt(trim((string) $encryptedApiKeyTest));
} else {
$encryptedApiKeyLive = $this->getAdyenAbstractConfigData('api_key_live', $storeId);
$encryptedApiKeyLive = $this->configHelper->getAdyenAbstractConfigData('api_key_live', $storeId);
if (is_null($encryptedApiKeyLive)) {
return null;
}
Expand All @@ -500,7 +500,7 @@ public function getAPIKey($storeId = null)
*/
public function getClientKey($storeId = null)
{
$clientKey = $this->getAdyenAbstractConfigData(
$clientKey = $this->configHelper->getAdyenAbstractConfigData(
$this->isDemoMode($storeId) ? 'client_key_test' : 'client_key_live',
$storeId
);
Expand All @@ -521,13 +521,13 @@ public function getClientKey($storeId = null)
public function getWsUsername($storeId = null)
{
if ($this->isDemoMode($storeId)) {
$wsUsernameTest = $this->getAdyenAbstractConfigData('ws_username_test', $storeId);
$wsUsernameTest = $this->configHelper->getAdyenAbstractConfigData('ws_username_test', $storeId);
if (is_null($wsUsernameTest)) {
return null;
}
$wsUsername = trim((string) $wsUsernameTest);
} else {
$wsUsernameLive = $this->getAdyenAbstractConfigData('ws_username_live', $storeId);
$wsUsernameLive = $this->configHelper->getAdyenAbstractConfigData('ws_username_live', $storeId);
if (is_null($wsUsernameLive)) {
return null;
}
Expand All @@ -544,7 +544,7 @@ public function getWsUsername($storeId = null)
*/
public function getLiveEndpointPrefix($storeId = null)
{
$prefix = $this->getAdyenAbstractConfigData('live_endpoint_url_prefix', $storeId);
$prefix = $this->configHelper->getAdyenAbstractConfigData('live_endpoint_url_prefix', $storeId);

if (is_null($prefix)) {
return null;
Expand Down Expand Up @@ -1323,7 +1323,7 @@ public function getVariantIcon($variant)
*/
public function isHppVaultEnabled($storeId = null)
{
return $this->getAdyenHppVaultConfigDataFlag('active', $storeId);
return $this->configHelper->getAdyenHppVaultConfigDataFlag('active', $storeId);
}

/**
Expand Down

0 comments on commit f8b4f62

Please sign in to comment.