Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijusCoding committed Dec 13, 2024
1 parent c34b71d commit 8c96455
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions controllers/admin/AdminSaferPayOfficialPaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,13 @@ public function getActiveCurrenciesList($paymentMethod, $paymentMethods)
{
$currencyOptions[0] = $this->l('All');

// if (!isset($paymentMethods[$paymentMethod]['currencies']) && in_array($paymentMethod, SaferPayConfig::WALLET_PAYMENT_METHODS)) {
// foreach (Currency::getCurrencies() as $currency) {
// $currencyOptions[$currency['id_currency']] = $currency['iso_code'];
// }
//
// return $currencyOptions;
// }
if (!isset($paymentMethods[$paymentMethod]['currencies']) && in_array($paymentMethod, SaferPayConfig::WALLET_PAYMENT_METHODS)) {
foreach (Currency::getCurrencies() as $currency) {
$currencyOptions[$currency['id_currency']] = $currency['iso_code'];
}

return $currencyOptions;
}

foreach ($paymentMethods[$paymentMethod]['currencies'] as $currencyIso) {
if (Currency::getIdByIsoCode($currencyIso)) {
Expand Down

0 comments on commit 8c96455

Please sign in to comment.