diff --git a/src/Payment/MollieOrderService.php b/src/Payment/MollieOrderService.php index ede0c6d0..43533281 100644 --- a/src/Payment/MollieOrderService.php +++ b/src/Payment/MollieOrderService.php @@ -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 } /**