Fix: GiveWP misses stripe resumed and updated webhook events - #8256
Open
WayneRocha wants to merge 4 commits into
Open
Fix: GiveWP misses stripe resumed and updated webhook events#8256WayneRocha wants to merge 4 commits into
WayneRocha wants to merge 4 commits into
Conversation
WayneRocha
force-pushed
the
smtnc-1630-givewp-misses-stripe-resumed-and-updated-webhook-events
branch
from
July 7, 2026 05:32
9db9082 to
41e31ae
Compare
This comment was marked as spam.
This comment was marked as spam.
…ion resumed and updated events
WayneRocha
force-pushed
the
smtnc-1630-givewp-misses-stripe-resumed-and-updated-webhook-events
branch
from
July 21, 2026 13:58
439e197 to
1da436c
Compare
WayneRocha
marked this pull request as ready for review
July 21, 2026 14:14
WayneRocha
requested review from
glaubersilva,
jonwaldstein,
larodiel and
pauloiankoski
and removed request for
glaubersilva and
pauloiankoski
July 29, 2026 02:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #SMTNC-1630
Description
GiveWP was not handling `customer.subscription.resumed` or `customer.subscription.updated` Stripe webhook events for next-gen (Stripe Payment Element) subscriptions.
This meant that when a donor updated their payment method after a failed payment, or when a paused subscription was resumed in Stripe, the GiveWP subscription status remained stuck in `failing` or `paused` indefinitely.
This PR adds two new webhook listeners for the Stripe Payment Element gateway:
CustomerSubscriptionResumed— handlescustomer.subscription.resumed. When Stripe fires this event (subscription is no longer paused), updates the GiveWP subscription status fromfailingorpaused→active.CustomerSubscriptionUpdated— handlescustomer.subscription.updated. When Stripe reports the subscription asactivebut GiveWP still has it asfailingorpaused(e.g. donor updated their payment method), updates the status toactive.Note
Depends on give-recurring#1236 which adds the
customer.subscription.resumedevent dispatch.Affects
Visuals
No UI changes — webhook processing only.
Testing Instructions
Prerequisites: Have stripe, webhooks and both PR's setup in your local.
customer.subscription.updatedevent.customer.subscription.resumeyou need to test manually because it don't support that.Pre-review Checklist