From 6a4c6ffb999acf889937976ef4fb22502dceab26 Mon Sep 17 00:00:00 2001 From: Jitendra Purohit <jitendra@fuzion.co.nz> Date: Fri, 29 Nov 2019 15:14:47 +0530 Subject: [PATCH] stripe#139 avoid disabled webhook to process on the status page --- CRM/Stripe/Webhook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Stripe/Webhook.php b/CRM/Stripe/Webhook.php index 674ead3c..4dc03fbc 100644 --- a/CRM/Stripe/Webhook.php +++ b/CRM/Stripe/Webhook.php @@ -59,7 +59,7 @@ class CRM_Stripe_Webhook { // Check and update webhook try { $updates = self::checkWebhook($wh); - if ($updates) { + if ($updates && $wh->status != 'disabled') { if ($attemptFix) { // We should try to update the webhook. $messageTexts[] = E::ts('Unable to update the webhook %1. To correct this please delete the webhook at Stripe and then revisit this page which will recreate it correctly.', -- GitLab