Intentkiln

Last verified 2026-07-08

stripe webhook local nextjs without forwarding

The actual problem

Webhooks fail in local Next.js because Stripe cannot reach localhost.

Do this

  1. Install Stripe CLI and run `stripe listen --forward-to localhost:PORT/api/webhook`.
  2. Copy the whsec_ secret into STRIPE_WEBHOOK_SECRET.
  3. Keep a demo unlock path for when CLI is not running.
  4. Verify checkout.session.completed updates your store.

Tools for this job

Related intents

Deep-dive report — $29

Self-serve checklist expansion for this query family. PayPal Checkout. No call.

stripe webhook local nextjs without forwarding — Intentkiln