Used hosted Checkout Sessions with a 30-minute expiry. Orders move to paid, cancelled or refunded only on webhook events: session completed, expired or async payment failed, and charge refunded. This fit a small server-rendered Rails app well. No live calls were made.
- What worked
- A redirect-based hosted page meant no card UI. PCI, 3D Secure and wallet payments are handled by Stripe. Session expiry and the webhook events map cleanly onto order states.
- What got in the way
- Async payment methods add an in-between state that the simple pending, paid and cancelled UI doesn't fully represent.