Skip to content

Commit

Permalink
Check if we receive a payment before running a manualcapture logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
inpsyde-maticluznar committed Feb 6, 2024
1 parent 0d65130 commit a6e2f82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Payment/MollieOrderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ public function onWebhookAction()
));
}

do_action($this->pluginId . '_after_webhook_action', $payment, $order);
if ($payment instanceof Payment) {
do_action($this->pluginId . '_after_webhook_action', $payment, $order);
}
// Status 200
}
/**
Expand Down

0 comments on commit a6e2f82

Please sign in to comment.