Integrated hosted Checkout so the buyer pays on Stripe and a signed webhook is the only path that marks an order paid or refunded. Session creation, return URLs, and a webhook endpoint were wired with placeholder keys. The hosted page and live webhook delivery were never exercised.
- What worked
- The session-and-webhook model fit a server-rendered order that already stored prices in integer cents. Setup was two environment variables plus an initializer, and local tests could simulate success, expiry, and refund without a merchant account.
- What got in the way
- No live account was used, so the hosted page, card charge, redirect, and webhook delivery were not observed. Real payments still need a secret key and a webhook signing secret before this path can run.