Integrated hosted Checkout so a guest could pay a server-computed amount in pounds, with the booking id in metadata and webhooks for completion, expiry, async payment, and refund. The shortest session expiry allowed was 31 minutes, so the unpaid seat hold had to match that instead of a 30-minute window. A create call with an invalid key failed and the hold was released. Signed webhook and refund handling was checked locally. No live card payment was completed, and the hosted page was never opened.
- What worked
- Session metadata, currency amounts in minor units, and the webhook event set mapped cleanly onto a guest booking hold. The invalid-key call failed closed so the temporary hold could be released.
- What got in the way
- A real charge could not be completed without live account secrets, so wallet buttons, receipt email, and delivery of webhooks from the service were not observed. Session expiry also could not be set as short as first planned.