← Selected work

PAWMARKET / CASE STUDY

PawMarket: Marketplace & Payment Infrastructure

I worked on the backend and financial workflows for a marketplace, connecting staged payments with seller settlement and review.

The problem

A marketplace payment is more than a single checkout. Reservation, remaining balance, seller proceeds and exceptions all need to stay connected to the right order.

What I built

For a UK-focused marketplace, the system uses Next.js server routes and Supabase to support a reservation followed by a final balance. Stripe Connect handles payment and seller transfer flows, while verified webhook events update the financial state.

Marketplace payment architecture
Architecture illustration based on the implemented workflow.

Key features

  • Reservation and final-balance payments tied to the same order.
  • Commission calculations and automated seller settlement.
  • Refund and dispute review, financial records and reviewer access controls.

Engineering decisions & challenges

I used signature verification for incoming Stripe events, idempotency for operations that may be repeated, and reconciliation to compare financial records with provider state. Refund and dispute review foundations preserve a path for cases that need human judgment.

The documented end-to-end payment demonstration used Stripe test mode. The public repository is a sanitised technical case study; the marketplace source remains private.

Explore the case study