Review request

Donation page with Stripe Checkout on Replit, safe to publish?

Solved · 225 viewsasked by kai_makes

Repo or live app

donate-demo.example.com ↗

Unsure about: SecurityOther

Replit's agent built a Stripe Checkout flow. Payments work in test mode. Before I switch to live keys I want someone to look at where the keys live and how the webhook is handled.

Comment

1 answer

Marked as helpful by the asker
priya_ships

Two things before live:

  1. Your secret key is read on the server, good. But the webhook handler parses JSON before verifying the signature, so verification always fails in production. Read req.text() first.
  2. The success page trusts ?session_id= from the URL to show 'thank you'. Confirm the payment server-side with checkout.sessions.retrieve before you thank anyone or unlock anything.
Comment
req.text() first, and verification passes now. kai_makes