Review request

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

Solved · 8 views · asked by kai_makes · edited

Repo or live app

donate-demo.replit.app

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 · edited

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