diff --git a/mollie.php b/mollie.php index 682bad6a6..27dc3d2be 100644 --- a/mollie.php +++ b/mollie.php @@ -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 ), ]; @@ -1185,4 +1185,4 @@ private function setApiKey() PrestaShopLogger::addLog(__METHOD__ . ' said: ' . $this->warning, Mollie\Config\Config::CRASH); } } -} \ No newline at end of file +}