404human Projects Writing Build logs Learning Books Progress
Rust · Zola
zsh · 404human@dev:~ Tab complete · ↑↓ history · type help

Payment Sandbox: the build log

A payment platform for development and testing where the money is simulated and the accounting is real: every synthetic balance is explained by an immutable double-entry journal that PostgreSQL itself refuses to edit. Checkout, signed webhooks and a separate simulated card network. Rust, built in the open.

Entries
2 logged
Status
M0–M6 built; M6 review: ship after the restore double-charge fix; every full 1M load run owed
Up next
load The full million-request runs for M0–M6, starting with the checkout; then M7
Payment Sandbox at a glance 2 entries
MilestoneNameEntriesState
M0–M5 the ledger, payments, webhooks and explain 1 done
M6 first useful release 1 ● in progress
M7 developer product next upcoming
M8 billing direction next upcoming

Latest · M6 · M6: Checkout, dashboard, and a double charge

tests per entry — 138 at build → 236 at M6
build ████████████████████████ 138
M6    █████████████████████████████████████████ 236

Payment Sandbox is a place to test a shop’s payments without a real payment provider, real cards or real money. A test store uses its checkout, its API and its signed webhooks the way it would use a real one.

The money is simulated. The accounting isn’t. Every balance comes from an immutable double-entry journal: each movement is written twice, out of one account and into another, and the two sides always add up to zero. PostgreSQL itself refuses to edit, delete or unbalance it. A separate simulator process plays the card network: approvals, declines, and the awkward ones where nobody knows what happened.

Every response says Sandbox-Simulated: true. Nothing in it can be redeemed for anything.

Where it stands

Started on 2026-11-16. Milestones M0 to M5 are built and drilled: process kills, clock jumps and a backup restore, with no double charge in any of them. Three fix rounds closed all but a few Lows from the first reviews, and on 2026-11-17 M6 shipped a hosted checkout and an inspection dashboard. Its review found that a restore from an older backup could charge twice; that’s fixed, and the review says ship. The project’s own rule keeps every milestone “in progress” until its full ≥1,000,000-request run is committed, and none has run yet.

The code is public at akira-shirase-oss/payment-sandbox.


M0–M5 · the ledger, payments, webhooks and explain

Exact money and a journal PostgreSQL won't let anyone edit or unbalance; scoped sandbox keys; two-phase payments with an identity committed before the simulated network is called; uncertain outcomes settled by a reconciler; signed webhooks fulfilled exactly once; and an explanation of every balance. Functional gates pass; the project's own rule keeps them in progress until a full load run is committed.

build
Fake money, real books

Day one of Payment Sandbox: a double-entry journal PostgreSQL won't let anyone edit, two-phase payments against a separate simulated network, signed webhooks fulfilled exactly once, and an explanation for every balance. Process kills, clock jumps and a restore found no double charge. The review then found five ways the books could still be bent; those and five Mediums are fixed, and a second round is under way.

Read the full entry →

138
M6 · first useful release — in progress

A hosted checkout and a dashboard on SvelteKit, Tailwind and shadcn-svelte.

M6
Checkout, dashboard, and a double charge

Three fix rounds closed all but a few Lows from the first reviews, then M6 shipped a hosted checkout and an inspection dashboard. Its review found that restoring an older backup could make a payment charge twice. That's fixed, and the review says ship. Every full load run is still owed.

Read the full entry →

236
load ● The full million-request runs for M0–M6, starting with the checkout; then M7 — being built now
M7 · developer product

A CLI, a TypeScript SDK, a scenario library and dataset resets.

M8 · billing direction

Asynchronous outcomes, authorization expiry on virtual time, then settlement, fees, payouts and disputes.

Related guides