From 756c95dfe7f316307fd2aae79d39d1c3a006861a Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Mon, 28 Oct 2024 12:30:31 +0200 Subject: [PATCH] [SL-265] init --- saferpayofficial.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/saferpayofficial.php b/saferpayofficial.php index 13b77747..6ecaa5e9 100755 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -470,6 +470,10 @@ public function hookDisplayPayment($params) continue; } + if (!in_array($this->context->currency->iso_code, $paymentMethods[$paymentMethod['paymentMethod']]['currencies'])) { + continue; + } + $imageUrl = ($paymentRepository->isLogoEnabledByName($paymentMethod['paymentMethod'])) ? $paymentMethod['logoUrl'] : ''; $isCreditCard = in_array($paymentMethod['paymentMethod'], \Invertus\SaferPay\Config\SaferPayConfig::TRANSACTION_METHODS);