Plain notes on picking between Stripe and a merchant of record like Paddle when you sell software subscriptions, plus webhook rules and prompts to hand your AI coding agent.
Notes from setting up subscriptions for a small software product, comparing Stripe (you are the seller) with Paddle (a merchant of record that sells on your behalf), and the integration details that tend to go wrong when an AI agent writes the billing code.
From Attila Albert, maker of
Who is legally the seller?
| Stripe (direct) | Paddle (merchant of record) | |
|---|---|---|
| Sales tax / VAT | You register and file where required (Stripe Tax helps calculate) | Paddle collects and remits |
| Fees | Lower base fees, tax tooling extra | Higher all-in fee |
| Invoices to customers | Issued in your name | Issued by Paddle |
| Flexibility | Very high, huge API | Narrower, product-focused |
| Payouts | Fast, many countries | Periodic payouts |
For a solo developer selling software worldwide, a merchant of record removes most tax paperwork. If you sell mostly in one country or need custom flows, direct Stripe is often simpler.
See webhooks.md for the webhook handling that both need.
Decide if the trial needs a card. Card-required trials convert better and attract fewer tyre-kickers; card-free trials get more sign-ups. Either way, send a reminder email before the first charge.
Run the whole lifecycle in test/sandbox mode: trial start, conversion, upgrade, failed payment, cancel, refund. Each provider has a CLI or dashboard tool to replay webhooks; use it.
trialing, active, past_due, canceled. Business logic only reads your set.Prompt for your coding agent:
Write the webhook endpoint for
. Verify the signature from the raw body, store event ids for idempotency, map statuses to trialing/active/past_due/canceled on the user record, return 200 quickly, and add tests for duplicate and out-of-order events.
The source lives in the open repository github.com/attila-albert/stripe-paddle-notes (MIT licence). Suggestions and fixes are welcome there.
If you would rather not copy rules and checklists between tools by hand, Ninja Builder is a desktop app for Mac, Windows and Linux that drives the AI subscription you already pay for (Claude, ChatGPT/Codex, Gemini, GitHub Copilot, Cursor, Grok or a local model). It ships built-in agents, playbooks and skills, a clickable live preview, agents that plan, build and check their own work, checkpoints with a Git client, project memory and an iPhone companion app. It has a 14-day free trial, then costs $4.99 a month.