Frontend system design · about 45 minutes
Booking widget with payment
Design a booking widget that a business, for example a clinic or a salon, puts on its website. The customer chooses a service, a date and a free time slot, enters contact details, and pays by card. Many customers look at the same day at the same time, and two people must never get the same slot. The widget runs inside other websites, is used mostly on phones, and must work with a keyboard and a screen reader.
Ask first
- Is payment required to confirm a booking, or can a booking exist without payment?
- How long may a customer hold a slot while filling in the form and paying?
- Do services have different lengths, and does the customer choose a staff member?
- Which time zone do we show: the business's or the customer's?
- How is the widget embedded: as an iframe, or as a script on the host page?
- Can the customer cancel or move a booking in the widget, or is that out of scope?
The outline
Write your own outline for each part first.
The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes