Skip to content

Payments architecture review

Is your money platform ready for real money at scale, an investor’s due diligence, or an auditor?

I review ledgers, wallets and payment integrations for fintech teams. Within two weeks you get it in writing: what will break, what an auditor will flag, and what to fix first.

Book a free 30-minute scoping callFixed price from $3,000

Why me

Money systems are what I build.

  • Since 2019 I’ve designed and built systems that move money: ledgers and wallets, payouts, payment gateways, in-store card payments and stablecoin payouts.
  • About 30 payment providers integrated, fiat, card and crypto, behind one gateway, so I know how each kind fails.
  • 1M+ deposits and $65M+ moved through money cores I designed and still run, on call since launch, across three brands under different regulatory models.
  • I review money and concurrency changes before they ship, and I’ve been on the other side of several external code audits, so I know what auditors look for.

15+ years in software. Card-present payments include in-store terminals over three undocumented protocols, which I reverse-engineered. More about me.

Who it’s for

Fintech and payments teams

Wallets, payouts, payment provider integrations and ledgers. Before a funding round or bank or partner due diligence, before launching in a new market, after an incident, or after a fast build.

Investors and acquirers

Technical due diligence on a payments company: whether its money handling holds up, and what it will cost to fix what doesn’t.

Teams that built with AI agents

Much of your money-handling code was written by coding agents, and you need a straight answer to one question: is this safe to put real money through?

What it covers

  1. Money correctness

    Ledger design, balance integrity, idempotency, reversals, rounding and reconciliation.

  2. Payments integration

    Provider callbacks and retries, unknown outcomes, payout safety and provider failover.

  3. Concurrency and failure modes

    Locking, race conditions, queue and retry behaviour, and partial failures.

  4. Security of money paths

    Secrets handling, signed requests, admin and back-office access, and the audit trail.

  5. Compliance flows

    KYC, sanctions screening and limits.

  6. Operational readiness

    Observability, alerting, runbooks, incident response, deploys and rollback.

  7. AI-built code checkAdd-on

    The patterns coding agents get wrong around money, such as silent retries, missing constraints and untested edge cases, and guard rails for the agent work that follows.

Twelve ways money code loses money

What I look for first. Each one is common, quiet, and expensive when real money finds it.

  1. The retry that pays twice.

    A timeout, an automatic retry, a second payout. Idempotency keys scoped per operation, stored with the response and replayed on a repeat, and carried through to the provider’s own idempotency key, not just a unique index at the API edge.

  2. “Unknown” booked as “failed”.

    A timeout is not a decline. The payment needs an explicit unknown state with the funds held, resolved only by a callback or a status query, never by a reversal on a timer.

  3. Webhooks taken at face value.

    Late, duplicated, out of order (a refund before its capture) or forged. Verify the signature and timestamp, de-duplicate by event id, apply events through a state machine that rejects illegal transitions, and re-fetch the payment from the provider before moving money.

  4. Balances you can UPDATE.

    A mutable balance column drifts. Double-entry, append-only postings; balances derived or updated in the same transaction; corrections by reversal, never by edits.

  5. Floats, minor units and rounding.

    Amounts as integers in minor units (ISO 4217 has currencies with 0, 2 and 3 decimals); token decimals per chain (USDT has 6 on Ethereum and Tron, 18 on BNB Chain); FX and fee splits allocated so the parts always sum to the whole.

  6. Two requests, one balance.

    Under the default isolation level, two concurrent withdrawals both pass the balance check. Row locks taken in a fixed order, a database rule that makes a negative balance impossible, or serializable transactions with retries.

  7. Dual writes.

    The transaction commits and the event is lost, or the event goes out and the transaction rolls back. A transactional outbox, idempotent consumers, and a sweeper for whatever slips through.

  8. Reconciliation by totals.

    Totals match while two errors cancel out; fees and FX netted in settlement never reach the ledger. Match every transaction three ways (ledger, provider settlement report, bank statement), with aged breaks owned and alerted.

  9. The back office as a money path.

    Manual adjustments without maker-checker approval, payee bank details that support can change, no segregation of duties, no tamper-evident audit trail.

  10. One provider and no plan B.

    Client timeouts longer than the provider’s, retries without a budget, no circuit breaker, no health-based routing to a second provider, and no rule for in-flight payments when traffic switches.

  11. Invariants nobody alerts on.

    Every transaction’s postings sum to zero; funds held at each provider match the ledger’s clearing account. Checked continuously, not discovered at month-end close or by a customer.

  12. Tests that mock away the danger.

    The provider is mocked, so timeouts, duplicates and partial failures never run. Fault injection, replayed real callbacks and property-based tests on ledger invariants: the gap AI-written code most often has.

    Covered in depth by the AI-built code check →

How it works

  1. Free 30-minute scoping call

    Your goals, stack and deadline. We pick the package together.

  2. NDA and read-only access

    To the repository, architecture docs, and staging if you have it. Nothing is copied out of your environment.

  3. Review

    5 to 10 working days, depending on the package.

  4. Written report

    Findings ranked by money and regulatory risk, each with its evidence and a fix. A verdict for each area (ship, fix first, or rebuild this part) and a 30/60/90-day plan.

  5. Walkthrough

    A 60-minute call with your team, then two weeks of follow-up questions by email.

Packages

Focused

$3,000

5 days

One area, for example the ledger and payments.

Readiness

$9,000–12,000

2 weeks

Standard plus the AI-built code check.

Fixed prices. 50% on booking and 50% on delivery, invoiced by my company.

What it isn’t

It isn’t a penetration test, a certification, an audit opinion or legal advice. And I don’t change your code during the review: you get findings and fixes, and your team stays in charge of the code.

Start with a free call

Thirty minutes on your goals, stack and deadline. You’ll know which package fits, or whether you need one at all.

Book a free 30-minute scoping call

Or email [email protected]