Case study

A bakery that takes
orders for a date.

Julie Ann Bakes is a family bakery selling seasonal ranges for collection on set days. I built and run its ordering site. The hard parts were dates that open and close by themselves, personalised products, and knowing for certain who has paid.

Visit Julie Ann Bakes ↗

Featured Christmas products on the Julie Ann Bakes site: a cookie box, a trio box, a paint-your-own biscuit box and a personalised initial biscuit.
The Christmas range on the live site.

Dates

The menu changes itself

Each range, such as Elf Return or Christmas, has its own ordering window and collection slots. The server's clock decides what is open, and a closing time is exclusive. Elf Return closed at midnight after 11:59pm on a Saturday and the Christmas range opened in the same instant.

Checkout checks again: a basket left open overnight cannot carry an Elf product into the Christmas window.

Catalogue

Products in Sanity, orders in the database

Products live in Sanity, a content editing tool, so they can change without a code change. Orders, payments and customers stay in PostgreSQL. At checkout each line item snapshots its options and price, and the order keeps its collection slot, so editing a product next week never rewrites last week's order.

Five steps: the customer pays, SumUp calls back, the site asks SumUp for the checkout status, the amount is checked, the order is marked paid.
A payment only counts once the site has asked SumUp itself.

Payments

Paid means SumUp said so

SumUp's callback is a prompt to ask, never the answer. The server fetches the checkout status itself and only marks an order paid when status, amount and currency all match. A mismatch goes to manual review.

Retries are safe too. The same basket gets the same payment session back, and if the site cannot tell whether a session was created, it stops rather than risk a double payment.

Pickup day

One page to collect from

The admin area lists every paid order by pickup date and time, with the customer, slot and personalisation. Cancelling and refunding are separate decisions, and the refund amount is always chosen deliberately.

The next deep dive, in your inbox.

The desk duck

Small duck. Second opinion.

AI answers from published work. Leave private details out.

A penny for your thoughts.
A quack for mine.

Ask me about Harry's projects.
I'll stick to what he's published.

Just the published work. Questions are saved for 30 days. Privacy0/500