diff --git a/CRM/Core/Payment/StripeIPN.php b/CRM/Core/Payment/StripeIPN.php index 38e88e4812c1cd5b4fbb4afb8b5b5f12eac109c4..ea3a1aee976b9e9fdd5e7ffd6f4b1d5d07dac655 100644 --- a/CRM/Core/Payment/StripeIPN.php +++ b/CRM/Core/Payment/StripeIPN.php @@ -540,6 +540,7 @@ class CRM_Core_Payment_StripeIPN { // Subscription is cancelled if (!$this->getSubscriptionDetails()) { // Subscription was not found in CiviCRM + CRM_Mjwshared_Hook::webhookEventNotMatched('stripe', $this, 'subscription_not_found'); return TRUE; } // Cancel the recurring contribution @@ -696,6 +697,7 @@ class CRM_Core_Payment_StripeIPN { $message = $this->_paymentProcessor->getPaymentProcessorLabel() . 'No matching contributions for event ' . $this->getEventID(); Civi::log()->debug($message); } + CRM_Mjwshared_Hook::webhookEventNotMatched('stripe', $this, 'contribution_not_found'); return FALSE; } @@ -730,6 +732,7 @@ class CRM_Core_Payment_StripeIPN { $message = $this->_paymentProcessor->getPaymentProcessorLabel() . 'Stripe Customer not found in CiviCRM for event ' . $this->getEventID(); Civi::log()->debug($message); } + CRM_Mjwshared_Hook::webhookEventNotMatched('stripe', $this, 'customer_not_found'); return FALSE; } return TRUE;