Skip to content

Commit

Permalink
[ECP-8890] Update class references
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp committed Jan 16, 2024
1 parent 2bcff1a commit 74fd4d3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Model/Api/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace Adyen\Payment\Model\Api;

use Adyen\AdyenException;
use Adyen\Config;
use Adyen\Payment\Helper\Config;
use Adyen\Payment\Helper\Data;
use Adyen\Payment\Logger\AdyenLogger;
use Adyen\Payment\Model\RecurringType;
Expand Down Expand Up @@ -101,8 +101,8 @@ public function authorise3d(Payment $payment): mixed
];

try {
$client = $this->configHelper->initializeAdyenClient($storeId);
$service = $this->configHelper->createAdyenCheckoutService($client);
$client = $this->adyenHelper->initializeAdyenClient($storeId);
$service = $this->adyenHelper->createAdyenCheckoutService($client);
$result = $service->paymentsDetails($request);
} catch (AdyenException $e) {
throw new LocalizedException(__('3D secure failed'));
Expand Down Expand Up @@ -173,13 +173,13 @@ public function listRecurringContractByType(string $shopperReference, int $store
$contract = ['contract' => $recurringType];
$request = [
"merchantAccount" => $this->configHelper->getAdyenAbstractConfigData('merchant_account', $storeId),
"shopperReference" => $this->configHelper->padShopperReference($shopperReference),
"shopperReference" => $this->adyenHelper->padShopperReference($shopperReference),
"recurring" => $contract,
];

// call lib
$client = $this->configHelper->initializeAdyenClient($storeId);
$service = $this->configHelper->createAdyenRecurringService($client);
$client = $this->adyenHelper->initializeAdyenClient($storeId);
$service = $this->adyenHelper->createAdyenRecurringService($client);
$result = $service->listRecurringDetails($request);

return $result;
Expand All @@ -200,16 +200,16 @@ public function disableRecurringContract(
int $storeId
): bool {
$merchantAccount = $this->configHelper->getAdyenAbstractConfigData("merchant_account", $storeId);
$shopperReference = $this->configHelper->padShopperReference($shopperReference);
$shopperReference = $this->adyenHelper->padShopperReference($shopperReference);
$request = [
"merchantAccount" => $merchantAccount,
"shopperReference" => $shopperReference,
"recurringDetailReference" => $recurringDetailReference
];

// call lib
$client = $this->configHelper->initializeAdyenClient($storeId);
$service = $this->configHelper->createAdyenRecurringService($client);
$client = $this->adyenHelper->initializeAdyenClient($storeId);
$service = $this->adyenHelper->createAdyenRecurringService($client);

try {
$result = $service->disable($request);
Expand Down

0 comments on commit 74fd4d3

Please sign in to comment.