|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
Handles verified webhook events, for applications using WebhookProcessor. More...
#include <Events.h>
Public Member Functions | |
| virtual | ~EventDispatcher ()=default |
| Destroys the dispatcher instance. | |
| virtual EventDispatchResult | dispatch (const VerifiedEventSignal &signal)=0 |
| Handles one verified event. | |
Handles verified webhook events, for applications using WebhookProcessor.
Implement this when webhook handling is better expressed as a class than as a callback; otherwise use stripekit::webhooks::EventHandler.
dispatch() is called after the signature has been checked and the event id claimed. Completed events are skipped; failed or interrupted attempts may run again, so make the handler safe to retry. It must return quickly, since Stripe treats a slow endpoint as a failed delivery.
|
virtualdefault |
Destroys the dispatcher instance.
|
pure virtual |
Handles one verified event.
| signal | The event and its delivery details. |