Skip to content

Commit

Permalink
Merge pull request #170 from waschier-design/patch-1
Browse files Browse the repository at this point in the history
Error with payment method PS 1.6.1 Issue #167
  • Loading branch information
margud authored Jun 6, 2020
2 parents 9054de8 + 5dc41db commit c562509
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,22 +633,22 @@ public function hookDisplayPaymentEU()
$paymentOptions = [];

foreach ($methods as $method) {
if (!isset(Mollie\Config\Config::$methodCurrencies[$method['id']])) {
if (!isset(Mollie\Config\Config::$methodCurrencies[$method['id_method']])) {
continue;
}
if (!in_array($iso, Mollie\Config\Config::$methodCurrencies[$method['id']])) {
if (!in_array($iso, Mollie\Config\Config::$methodCurrencies[$method['id_method']])) {
continue;
}

$images = json_decode($method['images_json'],true);
$paymentOptions[] = [
'cta_text' => $this->lang($method['name']),
'cta_text' => $this->lang($method['method_name']),
'logo' => Configuration::get(Mollie\Config\Config::MOLLIE_IMAGES) === Mollie\Config\Config::LOGOS_NORMAL
? $method['image']['size1x']
: $method['image']['size2x'],
? $images['size1x']
: $images['size2x'],
'action' => $this->context->link->getModuleLink(
'mollie',
'payment',
['method' => $method['id'], 'rand' => time()],
['method' => $method['id_method'], 'rand' => time()],
true
),
];
Expand Down Expand Up @@ -1185,4 +1185,4 @@ private function setApiKey()
PrestaShopLogger::addLog(__METHOD__ . ' said: ' . $this->warning, Mollie\Config\Config::CRASH);
}
}
}
}

0 comments on commit c562509

Please sign in to comment.