Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/PIWOO-376' into release/7.4.…
Browse files Browse the repository at this point in the history
…2-beta
  • Loading branch information
mmaymo committed Jan 18, 2024
2 parents d33d2d7 + 2c54aaf commit 1b604ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Payment/MollieOrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ public function onWebhookAction()
$this->processRefunds($order, $payment);
$this->processChargebacks($order, $payment);
//if the order gets updated to completed at mollie, we need to update the order status
if ($order->get_status() === 'processing' && $payment->isCompleted() && method_exists($payment_object, 'onWebhookCompleted')) {
if (
$order->get_status() === 'processing'
&& method_exists($payment, 'isCompleted')
&& $payment->isCompleted()
&& method_exists($payment_object, 'onWebhookCompleted')
) {
$payment_object->onWebhookCompleted($order, $payment, $payment_method_title);
}
return;
Expand Down

0 comments on commit 1b604ea

Please sign in to comment.