JagoPay
The payment layer behind my own products: one order API over Xendit and PayPal, a checkout that confirms in real time, and a double-entry ledger.
my part · Built solo, in my own time. Rebuilt from scratch; i design, review and ship it; a lot of the code is written with an AI pair.
- Rebuilt from scratch in 2026; replaces Jago Pay v1
The problem
Every product I ship needs to take payments. Wiring a payment provider into each one separately duplicates the work, and the risk.
What I built
An order API with hashed API keys and an OpenAPI spec, sitting on Xendit (virtual accounts, QRIS, e-wallets, retail outlets) and PayPal. Fee rules and currency conversion are configurable, and money is stored as integers so nothing rounds away.
A popup checkout, loaded by a small SDK, that updates live over websockets and falls back to polling. Underneath it, a double-entry ledger: refunds reverse entries, payouts re-check the balance under a lock, and every gateway webhook is verified before it's trusted. Live, test and sandbox modes, with simulated payments.
Subscriptions with an invoice per cycle, a permanent invoice link, past-due handling, and cancellation now or at period end, so nobody gets billed after they asked to stop.
Where it is now
In production since July 2026, and the payment layer my newer products bill through.
this replaces Jago Pay v1, which taught me most of what this one does right.