Skip to content

Saša Sladić

AI product engineer. 10+ years of full-stack engineering and software architecture.

All work

Two-sided marketplace with Stripe Connect payouts

One checkout split between seller, platform and carrier, with payouts held until it is safe

Stripe Connect payouts, live Shippo rates and labels, Typesense search and realtime messaging, built from nothing for a US operator.

Client
A US marketplace operator
My role
Lead full-stack developer
Year and duration
2026, 2026, ongoing
Stack
Next.js, Laravel 12, MySQL, Typesense, Stripe Connect, Shippo, Ably, DigitalOcean, Cloudflare
Listings page of the second-hand gear marketplace

The problem

A marketplace is not a shop. Every sale has two strangers on either side, money that has to move between them without either one being able to cheat, a parcel that has to be shipped and a conversation that has to happen first. Get the money leg wrong and you do not have a bug, you have a dispute.

What it is

A marketplace for second-hand fishing gear in the United States. Private sellers list, buyers filter, message the seller and check out and the operator takes a commission on each sale. Built end to end: storefront, backend, search, payments, shipping, messaging and admin.

Integrations doing the heavy lifting

  • Stripe Connect splits one payment between the seller, the platform’s commission and shipping.
  • Shippo quotes live rates per parcel and destination, generates labels and feeds tracking back into the order.
  • Typesense answers faceted search across category, price, brand, size and condition.
  • Ably carries buyer and seller messaging in real time.

The money model, changed on purpose

The first version settled every sale as a direct charge, with the seller as merchant of record. Fast to launch, but the platform never held the money, so it could not protect a buyer and sellers had to finish payment onboarding before they could list anything. We moved the platform to merchant of record so it can hold a seller’s earnings until onboarding is done: sellers now list first and onboard to get paid.

The review behind that change found four defects in the payout path and fixed them: a retry that could pay a seller twice, no dispute handler, payouts not linked to their transaction and an audit log that was written and then thrown away.

Running it

Queues, scheduler, webhooks and the payout ledger can all stop without an error while uptime checks stay green. The runbook monitors the absence of expected activity, not uptime. Hosting, database, storage and DNS were moved into accounts the operator owns, rehearsed before the cut-over.

Every axis in the filter rail is a facet the search answers across the whole catalogue at once, which is why search runs on Typesense rather than on database queries.
Every axis in the filter rail is a facet the search answers across the whole catalogue at once, which is why search runs on Typesense rather than on database queries.