pub async fn stripe_webhook_handler<H: SubscriptionHandler, S: IdempotencyStore>(
__arg0: State<Arc<StripeWebhookState<H, S>>>,
headers: HeaderMap,
body: Bytes,
) -> ResponseExpand description
Main webhook handler
Processes incoming Stripe webhook requests:
- Extracts the
stripe-signatureheader - Verifies the signature using HMAC-SHA256
- Checks idempotency (have we seen this event?)
- Queues the event for async processing
- Returns 200 (new event) or 202 (already processed)