Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9780c40
Add hook to allow for custom webhook post-processing
daledupreez Jul 7, 2025
3331c99
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 18, 2025
aa7989c
Moving action inside specific methods when processing async events
wjrosa Jul 18, 2025
5866fb2
Adding a try...catch block
wjrosa Jul 18, 2025
e991d11
Changelog and readme entries
wjrosa Jul 18, 2025
c52d7a1
Update includes/class-wc-stripe-webhook-handler.php
wjrosa Jul 21, 2025
c8bd4ba
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 21, 2025
09b792a
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 22, 2025
a63cbe1
Introducing a protected variable to store the order being processed
wjrosa Jul 22, 2025
cd17df2
Passing the whole notification object to deferred events
wjrosa Jul 22, 2025
acb696a
Fix tests
wjrosa Jul 22, 2025
bbc92e7
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 28, 2025
78cf5b4
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 29, 2025
91fdac9
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Jul 29, 2025
c442208
Moving action after the deferred webhook switch
wjrosa Jul 29, 2025
29511dc
Merge branch 'develop' into add/hook-for-inbound-webhooks
diegocurbelo Jul 31, 2025
12bfe13
Merge branch 'develop' into add/hook-for-inbound-webhooks
wjrosa Aug 1, 2025
6f83270
Add try/catch to main hook; catch Throwable instead of Exception
daledupreez Aug 4, 2025
479c7b2
Refactor action triggers into helper function and add explicit docs f…
daledupreez Aug 4, 2025
c8e4b0a
Update changelog.txt
wjrosa Aug 4, 2025
09581c7
Readme entry update
wjrosa Aug 4, 2025
349378d
Update includes/class-wc-stripe-webhook-handler.php
wjrosa Aug 4, 2025
0b78f6f
Renaming the action to wc_stripe_webhook_received
wjrosa Aug 4, 2025
e6d8b32
Merge branch 'add/hook-for-inbound-webhooks' of https://github.com/wo…
wjrosa Aug 4, 2025
a6a1e14
Changelog and readme entries
wjrosa Aug 4, 2025
908dec4
Merge branch 'develop' into add/hook-for-inbound-webhooks
daledupreez Aug 18, 2025
353ff3e
Merge branch 'develop' into add/hook-for-inbound-webhooks
daledupreez Aug 19, 2025
be30ddd
Fix changelog entry location
daledupreez Aug 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions includes/class-wc-stripe-webhook-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,6 +1354,17 @@ public function process_webhook( $request_body ) {
$this->process_setup_intent( $notification );

}

/**
* Fires after a webhook has been processed, but before we respond to Stripe.
* This allows for custom processing of the webhook after it has been processed.
*
* @since 9.7.0
*
* @param string $webhook_type The type of webhook that was processed.
* @param object $notification The webhook data sent from Stripe.
*/
do_action( 'wc_stripe_webhook_processed', (string) $notification->type, $notification );
}

/**
Expand Down
Loading