Skip to content

Commit

Permalink
Merge branch 'bugfix/klarna-refund' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Aug 31, 2021
2 parents a1665de + e2dbddb commit ed223c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/code/community/Mollie/Mpm/Model/Mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ public function processTransaction($orderId, $type = 'webhook', $paymentToken =
} else {
return $this->paymentsApi->processTransaction($order, $type, $paymentToken);
}
} catch (Mollie_Mpm_Exceptions_KlarnaException $exception) {
// No rollback, save is done in the finally.
throw $exception;
} catch (\Exception $exception) {
$connection->rollback();
throw $exception;
Expand Down

0 comments on commit ed223c4

Please sign in to comment.