Skip to content

Fix/stripe webhook rate limit#405

Open
hashhhh-16 wants to merge 4 commits into
niharika-mente:mainfrom
hashhhh-16:fix/stripe-webhook-rate-limit
Open

Fix/stripe webhook rate limit#405
hashhhh-16 wants to merge 4 commits into
niharika-mente:mainfrom
hashhhh-16:fix/stripe-webhook-rate-limit

Conversation

@hashhhh-16

Copy link
Copy Markdown
Contributor

Summary

Registers the Stripe webhook route before the API rate limiter.

Changes

  • Moved /api/checkout/webhook registration before app.use("/api", limiter).
  • Preserved webhook registration before express.json() to ensure Stripe signature verification continues to work correctly.

Why

Stripe may send multiple webhook events in quick succession. Registering the webhook before the API rate limiter prevents legitimate webhook events from being rate-limited and potentially missed during order processing.

closes #356

@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the niharika-mente's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Rate limiter applies to Stripe webhook endpoint causing missed webhook events

1 participant