Skip to content

Commit

Permalink
Merge pull request #401 from Invertus/MOL-480/handle-mollie-exception
Browse files Browse the repository at this point in the history
Mol 480/handle mollie exception
  • Loading branch information
margud authored Sep 2, 2021
2 parents b1bcf1d + 605a987 commit 8ec82b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/Service/PaymentMethodService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8ec82b8

Please sign in to comment.