Skip to content

Add Stripe webhook handler and update env/docs for Stripe integration#18

Merged
feispla merged 1 commit into
codex/provide-professional-e-commerce-promptfrom
codex/configure-stripe-with-vercel-webhook
May 15, 2026
Merged

Add Stripe webhook handler and update env/docs for Stripe integration#18
feispla merged 1 commit into
codex/provide-professional-e-commerce-promptfrom
codex/configure-stripe-with-vercel-webhook

Conversation

@feispla
Copy link
Copy Markdown
Owner

@feispla feispla commented May 15, 2026

Motivation

  • Add server-side handling for Stripe webhook events to securely verify incoming requests.
  • Simplify example environment variables to surface Stripe credentials and the application URL.
  • Document how to configure Stripe and Vercel to use the new webhook route.

Description

  • Add a new serverless endpoint at api/stripe-webhook.js that reads the raw request body, parses the Stripe-Signature header, computes the expected HMAC-SHA256 using STRIPE_WEBHOOK_SECRET, performs a timing-safe signature comparison, and returns 200 for verified events or 4xx/5xx for errors.
  • Replace and simplify .env.example entries to include STRIPE_SECRET_KEY, STRIPE_PUBLISHABLE_KEY, STRIPE_WEBHOOK_SECRET, and APP_URL.
  • Update docs/INTEGRATIONS.md with step-by-step instructions for configuring Stripe webhooks and Vercel environment variables, including guidance to rotate exposed credentials and where to point the webhook (/api/stripe-webhook).

Testing

  • Ran the project lint with npm run lint; it completed successfully.
  • Ran the existing automated test suite with npm test; all tests passed.

Codex Task

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
feishtml Ready Ready Preview, Comment May 15, 2026 7:21am

@supabase
Copy link
Copy Markdown

supabase Bot commented May 15, 2026

This pull request has been ignored for the connected project nejzzerwtgtbqawaizuo because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@feispla feispla marked this pull request as ready for review May 15, 2026 07:24
@feispla feispla merged commit 9594715 into codex/provide-professional-e-commerce-prompt May 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant