Skip to content

Commit

Permalink
Merge pull request #218 from Invertus/SL-265/payment-currencies-detec…
Browse files Browse the repository at this point in the history
…tion-ps16

SL-265 Payment currencies detection on Prestashop 1.6
  • Loading branch information
MarijusCoding authored Oct 28, 2024
2 parents d190722 + 756c95d commit dd26090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions saferpayofficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dd26090

Please sign in to comment.