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 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) {