Commit 6a4c6ffb authored by jitendra's avatar jitendra
Browse files

stripe#139 avoid disabled webhook to process on the status page

parent 9fcd11c7
...@@ -59,7 +59,7 @@ class CRM_Stripe_Webhook { ...@@ -59,7 +59,7 @@ class CRM_Stripe_Webhook {
// Check and update webhook // Check and update webhook
try { try {
$updates = self::checkWebhook($wh); $updates = self::checkWebhook($wh);
if ($updates) { if ($updates && $wh->status != 'disabled') {
if ($attemptFix) { if ($attemptFix) {
// We should try to update the webhook. // 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.', $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.',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment