Payments Playbook
by Machine Republic
$99
Charging a card takes an afternoon. Everything after that is the job.
The webhook that arrives twice. The 180-day PayPal hold. The SCA flow that drops 60% of your European checkouts without logging a single error. None of it's in the docs, and all of it lands on you, usually at 3 AM.
Who wrote this
We're Sean Nieuwoudt and Beverley Merriman. We build and run Indiemaker and a handful of other products that take real money from real customers, and we've been doing it for over a decade, first through a dev studio and then on our own books.
Every chapter here started as a post-incident note. Not a tutorial rewritten from official documentation: the thing one of us wrote down after it broke in production and cost us something. We've made every mistake in this book, several of them twice.
What's inside
42 chapters. 1,000+ pages. 90+ Python examples. 15+ providers.
Part I, chapters 1 to 17. Getting money in. Your first checkout, the state machine underneath it, and eight providers compared with the fees in the open. Stripe, PayPal, Paddle, Circle, 2Checkout, escrow, crypto, in-app purchases, VAT, PCI DSS.
Terminology and glossary
How payments actually work
Payment lifecycles
International payments and multi-currency
Subscriptions and recurring billing
VAT and digital sales tax
Stripe integration
PayPal integration
Paddle integration
Circle integration
2Checkout integration
Escrow payments
Cryptocurrency and Web3
In-app purchases
Compliance and security
Part II, chapters 18 to 29. Running it for real. Routing across providers, fraud, reconciliation, marketplace payouts, and surviving Black Friday without adding servers.
Payment orchestration
Fraud prevention and risk
Financial reconciliation
Performance and scale
Alternative payment methods
Marketplace and multi-party payments
Advanced subscription management
Payment analytics and BI
Global compliance
Payment UX and conversion
Security operations
Fees and margin optimization
Part III, chapters 30 to 42. What's next. NFC, QR, open banking and PSD2, regional rails, CBDCs, Asian payment networks, and the webhooks chapter you'll wish you'd read first.
NFC and contactless payments
QR code payments
B2B payment workflows
Open banking and PSD2
Regional payment networks
AI in payments
CBDCs and digital currencies
Gaming and digital goods
Payment SDKs and libraries
Webhooks deep dive
Asian payment ecosystems
Emerging market payment systems
Advanced payment data analytics
The voice, before you buy
Stripe's 2.9% + $0.30 is higher than some competitors. If it saves 40 hours of integration at $100/hour, that's $4,000, which is the fee difference on $140K of volume against a 2.5% competitor.
PayPal isn't the cheapest processor and the dispute system is famously painful. Skip it anyway and you'll lose 10 to 15% of your international conversions, which is why every serious stack still includes it.
Read chapter 9 for free on the website.
What you get
The book, as PDF and EPUB. 1,030 pages, yours to keep, no DRM.
138 Python files across 39 chapter folders. Error handling, retries and signature checks left in, standard library wherever possible. Point them at a sandbox and go. MIT licensed, so you can ship them in commercial work without asking.
56 diagrams, as 300 DPI PNG, as SVG, and as the Mermaid source. Drop them straight into your own architecture docs and RFCs.
Every future edition, free. Payments don't stand still and neither does the book. New version, new email.
Questions people ask
Do I need to know Python? Helps, isn't required. The examples are Python because it reads like pseudocode; the patterns are language-neutral. A Go or TypeScript engineer will follow them fine.
Can I use the code at work? Yes. The examples are MIT licensed: ship them, change them, sell what you build. The book text itself is for you, not for redistribution.
Will it go stale? Provider APIs move, the failure modes don't. Reconciliation, idempotency and dispute handling work the same as they did a decade ago. When specifics change, you get the updated edition free.
Can I expense it? Gumroad sends a receipt you can hand to finance, with VAT where it applies.
I only use Stripe. Is two-thirds of this wasted? The Stripe chapter is one of 42. The other 41 are about what happens after the charge succeeds, which is the same work whoever processes it.
payments-playbook.com