StealThis .dev

Hotel Booking — Checkout

Booking checkout page: guest details, arrival time and requests, a card payment form with live number / expiry formatting and inline validation, plus a sticky order summary and a success confirmation state.

Abrir en Lab
html css vanilla-js
Targets: JS HTML

Código

Booking Checkout

The final step of the booking funnel. The left column collects guest details (name, email, phone), an estimated arrival time and special requests, then card payment with live formatting — card number grouped in fours, expiry as MM/YY, numeric CVC. Inline validation flags missing or malformed fields on submit. The right column is a sticky order summary echoing the room, dates and price breakdown. Confirming runs a short processing state, then swaps in a success panel with a booking reference — all in vanilla JS.