Skip to content
Snippets Groups Projects
Commit 6a4c6ffb authored by jitendra's avatar jitendra
Browse files

#139 avoid disabled webhook to process on the status page

parent 9fcd11c7
No related branches found
No related tags found
No related merge requests found
......@@ -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.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment