XF 2.1 Stripe events

DragonByte Tech

Well-known member
What Stripe events are necessary to select in the "Webhooks" page in order to enable integration with the Payment Profile system?

Do I only need the 13 "Charge" related events?

EDIT: From looking at the code, these are the actionable events:
  • review.closed
  • invoice.payment_succeeded
  • charge.succeeded
  • charge.refunded
  • charge.dispute.funds_reinstated
  • charge.dispute.funds_withdrawn
 
Last edited:
We don’t necessarily recommend reducing the number of events Stripe sends and the default of “All events” should be kept.

Reason being that if we ever change the events we listen for, you might end up missing webhook events entirely.

Case in point, I don’t think the list you provided is actually the full list and I think you may have gotten that from an earlier version the software.

If you only enabled those I don’t think you’d be receiving the right events to sufficiently complete the purchase process.
 
That is actually the list as of 2.1.8 PL2 :D

I posted this before digging into the code, and I mistakenly assumed every event would be logged (albeit with a message like "Unknown event, skipping" or something) and didn't want to get spammed. I can see that's not how it works, though.

It might be an idea to add something like "Select 'All Events' when adding the webhook" to the description in the AdminCP because
a) the default isn't "All Events" - there is no default when adding a Stripe webhook
b) this is a question that has been brought up before - this thread turned up in a Google search for "xenforo stripe events": https://xenforo.com/community/threads/stripe-event-types.171110/
 
Oh yeah. Sorry about that. I thought we’d changed some recently. Fair enough. The sentiment still stands though. And they have changed at least once since the release of 2.0.

I’m pretty sure that the default for that was all events. Definitely worth us documenting that.
 
This is how the "Add a webhook" UI looks now:

1588198474480.webp

I'll wager the second you release the update making a reference to "Click the 'receive all events' link" they'll change the UI again 😂
 
Back
Top Bottom