Expand description
Axum Handler and Router for Stripe Webhooks
This module provides the HTTP layer for receiving and processing Stripe webhooks.
§Key Features
- Raw Body Extraction: Captures the exact bytes for signature verification
- Quick Acknowledgment: Returns 200/202 immediately, processes asynchronously
- Proper Error Responses: Returns appropriate HTTP status codes
§Endpoint
POST /webhooks/stripe
§Headers
Required:
stripe-signature: The Stripe webhook signatureContent-Type: application/json
Structs§
- Stripe
Webhook State - Shared state for the webhook handler
- Webhook
Response - Success response for webhook acknowledgment
Functions§
- stripe_
webhook_ handler - Main webhook handler
- stripe_
webhook_ router - Create the Stripe webhook router
- webhook_
health - Health check endpoint for the webhook handler