|
| Event | construct_event (std::string_view payload, std::string_view signature_header, std::string_view endpoint_secret, ConstructEventOptions options={}) |
| | Checks that a webhook delivery really came from Stripe, and parses it.
|
| Task< ProcessEventOnceResult > | process_event_once (const Event &event, WebhookDedupStore &dedup_store, EventHandler handler, ProcessEventOptions options={}) |
| | Runs the handler for an already-verified event unless it was already completed.
|
| Task< ProcessEventOnceResult > | process_event_once (std::string_view payload, std::string_view signature_header, std::string_view endpoint_secret, WebhookDedupStore &dedup_store, EventHandler handler, ProcessEventOptions options={}) |
| | Verifies a webhook delivery and handles it unless it was already completed.
|
Webhooks.h.
Stripe-style webhook construction and de-duplicated processing helpers.
- Author
- Hans de Ruiter
- License:
- See LICENSE for details.