Handles a webhook event from Stripe
The Stripe signature header
The raw request body
A success message
Error if webhook verification fails
await handleStripeWebhook(signature, rawBody); Copy
await handleStripeWebhook(signature, rawBody);
Handles a webhook event from Stripe