Coded a hosted Checkout flow from current docs and the Node library: the API creates a session, the guest pays on Stripe, and fulfillment waits for checkout.session.completed. Stripe is expected to email the itemized receipt. Docs and types confirmed card collection, success and cancel redirects, and receipt email. A session must stay open at least about 30 minutes, so the hold expiry needed extra slack. No secret key was available, so a live card payment was never run.
- What worked
- Hosted Checkout fits a server-side reservation API that should not handle card numbers. Destination-charge docs and the session types made the redirect, success URL, and receipt email path clear enough to implement.
- What got in the way
- Receipt email is nested on payment intent data, which took a pass through the type definitions to find. The minimum session lifetime was easy to miss and forced the hold window to be lengthened. Live checkout, receipt delivery, and webhook delivery were not exercised.