From 6ec2f5e1b11d25c5e0498e00b324344de85dd64d Mon Sep 17 00:00:00 2001 From: margud Date: Thu, 2 Sep 2021 11:37:21 +0300 Subject: [PATCH 1/2] MOL-480: handle mollie method get exception --- src/Service/PaymentMethodService.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Service/PaymentMethodService.php b/src/Service/PaymentMethodService.php index 1939848ce..642ccf905 100644 --- a/src/Service/PaymentMethodService.php +++ b/src/Service/PaymentMethodService.php @@ -189,7 +189,11 @@ public function getMethodsForCheckout() $apiEnvironment = Configuration::get(Config::MOLLIE_ENVIRONMENT); $methods = $this->methodRepository->getMethodsForCheckout($apiEnvironment, $this->shop->id) ?: []; - $mollieMethods = $this->getSupportedMollieMethods(); + try { + $mollieMethods = $this->getSupportedMollieMethods(); + } catch (\Exception $e) { + return []; + } $methods = $this->removeNotSupportedMethods($methods, $mollieMethods); foreach ($methods as $index => $method) { From 605a987cf9216d299635b7b7821f1edd06766ee5 Mon Sep 17 00:00:00 2001 From: margud Date: Thu, 2 Sep 2021 11:38:13 +0300 Subject: [PATCH 2/2] changelog update --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index aaa9817ed..7d38dd9ef 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ ## Changes in release 4.4.0 ## + Changed when Prestashop order is created. Now order is only created after transaction is paid. + Fixed issue with backorder when last product is bought. It no longer changes status to backorder. ++ Mollie no longer kills other payment methods if mollie API breaks down on checkout page. ## Changes in release 4.3.1 ## + Fixed issue when returning to payment methods status of the backorder (not paid) was changed to backorder (paid) instead of canceled. https://github.com/mollie/PrestaShop/issues/349