Skip to content
Keshav Raj
A calendar of slot tiles with one held, and a deposit coin confirmed once by a payment terminal.
PAYMENTS STRIPLIVE
SHIPPED Transactional slot holds and idempotent payment confirmation.I OWNED Sole engineer + product ownerOUTCOME LIVE

Studio booking + deposits

Keshav RajSole engineer + product owner · 2026 · LiveContact meResume PDF

Context

This is a booking and deposit-payment site I built for a real appointment-only studio in Bengaluru. I was the sole engineer and the product owner for the client. It is live in production.

The problem

The studio needed online booking with deposits. It could not afford double-booked slots, and it did not want to reconcile payments by hand. A lost browser tab after paying must not lose the booking.

What I did

  1. I built a five-step booking wizard on Next.js 15, plus a landing page with structured data, dynamic share images and checks for contrast and reduced motion.

  2. I wrote a slot engine that handles opening hours, buffers, minimum notice and overrides.

  3. Slots are held with Firestore transactions and a 15-minute expiry, so two people cannot take the same slot.

  4. Payment confirmation runs through both the browser callback and the Razorpay webhook, and both are idempotent.

  5. I added an admin console with signed session cookies and Edge middleware, and email through Resend.

Key decision

I confirm payments in two places on purpose. If the customer closes the page after paying, the webhook still completes the booking. If the webhook is late, the callback does.

The cost is more code to keep both paths idempotent, so one payment can never create two bookings.

Result

The site is live and maintained, about four months from first commit to launch with later iterations. It came from a predecessor I built with Stripe and Firebase.

I have no booking-volume or revenue figures, so I do not state any.

What I learned

I would again design for the dropped client first, since it is the failure that costs the client money. Next I would pull booking counts and settlement data so the result can be a number.

Stack

  • Next.js 15
  • Firestore
  • Razorpay
  • Resend
  • Vercel
Play the world →