12#include "StripeKit/Events.h"
13#include "StripeKit/Logging.h"
14#include "StripeKit/WebhookDedupStore.h"
15#include "StripeKit/Webhooks.h"
83 std::string delivery_id = {})
const;
Handles verified webhook events, for applications using WebhookProcessor.
Receives StripeKit's log entries.
Remembers which webhook events have been handled.
WebhookProcessor(WebhookDedupStore &dedup_store, EventDispatcher &dispatcher, Logger *logger=nullptr, WebhookProcessorOptions options={})
Creates a processor.
WebhookResponseAction process(const WebhookVerificationInput &input, std::string delivery_id={}) const
Verifies, de-duplicates, and dispatches one delivery.
WebhookResponseAction
What to tell Stripe about a delivery.
constexpr std::chrono::minutes defaultStaleInflightTimeout
How long an unfinished claim is honoured before another process may take it.
Tuning for WebhookProcessor.
std::chrono::minutes stale_inflight_timeout
How long before a claim left behind by a crashed process is reclaimed.