Skip to content

Commit

Permalink
remove adyen assets from PaymentController
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Sep 20, 2024
1 parent cb270a3 commit 9fd07e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
5 changes: 0 additions & 5 deletions metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@
'block' => 'select_payment',
'file' => 'views/frontend/blocks/page/checkout/select_payment.tpl'
],
[
'template' => 'page/checkout/payment.tpl',
'block' => 'checkout_payment_main',
'file' => 'views/frontend/blocks/page/checkout/checkout_payment_main.tpl'
],
[
'template' => 'page/checkout/payment.tpl',
'block' => 'checkout_payment_nextstep',
Expand Down
19 changes: 0 additions & 19 deletions src/Controller/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,6 @@ public function getPaymentList()
return $paymentList;
}

public function isAdyenAssetsNecessary(): bool
{
if (is_null($this->assetsNecessary)) {
$this->assetsNecessary = false;
$paymentList = $this->getPaymentList();
if (is_array($paymentList)) {
foreach ($paymentList as $paymentObj) {
/** @var AdyenPayment $paymentObj */
if ($paymentObj->showInPaymentCtrl()) {
$this->assetsNecessary = true;
break;
}
}
}
$this->assetsNecessary = $this->assetsNecessary && !$this->isValidAdyenAuthorisation();
}
return $this->assetsNecessary;
}

public function isActiveAdyenSession(): bool
{
/** @var SessionSettings $session */
Expand Down
5 changes: 0 additions & 5 deletions views/frontend/blocks/page/checkout/checkout_payment_main.tpl

This file was deleted.

0 comments on commit 9fd07e6

Please sign in to comment.