MalahideStudio

What subscription billing infrastructure has to get right

Taking payments is the easy part. The hard part is deciding who gets access, keeping that true, and staying up when the traffic arrives.

Subscription billing infrastructure is the set of systems that takes a subscriber’s money, decides what they can access, and keeps both facts true over months and years. For a media company it sits underneath every paywall, members’ newsletter and private podcast feed. When it works, nobody notices. When it fails, subscribers are locked out of things they paid for, or reading for free things they did not. This guide sets out what that infrastructure has to get right, plainly enough for a publisher and in enough detail for the engineers who build it.

Payments provider and billing logic are different jobs

A payments provider such as Stripe, Adyen or Braintree moves money: it stores cards, charges them, handles bank declines and pays out. Many providers, and billing platforms such as Recurly or Chargebee, also manage subscriptions: plans, renewals, invoices and proration.

Your billing logic is the part specific to your business: which plans exist, what each includes, how gifts, group subscriptions, student rates and bundles work, what happens on upgrade or cancellation, and how a subscription maps to access across your site, apps, newsletters and feeds. Some of this can live in the provider’s subscription features. Some of it always lives with you.

The practical rule is to let the provider be the source of truth for money, and keep your own record of subscribers and their entitlements. Treating the provider’s dashboard as your subscriber database makes reporting, support and migrations harder than they need to be. Keeping your own copy means keeping the two in step, which is what webhooks and reconciliation are for.

Entitlements and sign-in

An entitlement is a statement of what a person can access right now, such as “this account can read paid articles and receives the members’ edition”. Subscriptions create entitlements, and entitlements, not subscriptions, should drive what the product shows. That separation lets you handle gifts, complimentary access for contributors, group plans and trials without special cases scattered through the code.

Webhooks and reconciliation

Your provider tells your system what has happened through webhooks: a renewal succeeded, a card failed, a subscription was cancelled. Webhooks keep entitlements current, and they are less reliable than they look.

Then reconcile. Run a scheduled job, at least daily, that compares every active subscription at the provider with the entitlements in your system and flags differences. Webhooks will occasionally be missed, through outages on either side or a bad deployment. Reconciliation finds the gap before a subscriber writes in to say they were charged and locked out.

Uptime under traffic spikes

Media traffic is uneven. A story breaks, an episode spreads, a newsletter lands in a large list, and sign-in and checkout are hit at once by people who will not wait. Before founding Malahide Studio, Stephen Han led subscription infrastructure at Vox Media for The Verge and New York Magazine, a platform serving 15 brands and $50M in subscription revenue, and took its uptime from 99% to 99.99%. That is the difference between more than three days of downtime a year and under an hour, and most of it comes from a few habits:

Card-testing attacks and fraud controls

Card testers use stolen card numbers to make small charges on checkout pages, to learn which cards still work. A subscription checkout with a low entry price is an attractive target. The costs are real: fees on every attempt, disputes, standing with the card networks and, in bad cases, a suspended merchant account.

Fraud controls interact with failed payment recovery. Rules that are too strict will decline real renewals, so review the two together.

Tax

Digital subscriptions are generally taxed where the subscriber lives. In the UK and EU that means VAT at the customer’s local rate, many US states tax digital goods, and other countries set their own rules and thresholds. Some digital publications qualify for reduced or zero rates, and which products qualify varies by country. Use your provider’s tax calculation or a dedicated tax service, collect location evidence at checkout, and ask an accountant to confirm how your products are classified. Decide early whether displayed prices include tax, because changing it later is awkward for existing subscribers.

Analytics and events

Billing data is the most reliable data a subscription business has. Send clean events from it into your analytics: subscription started, renewed, payment failed, payment recovered, cancelled with reason, plan changed, refunded. Attach the plan, price, currency, entry point and a pseudonymous subscriber ID to each. With that in place, cohort retention, revenue reporting and engagement analysis all draw on one source and agree with each other.

Migrating subscription billing infrastructure

At some point you will move providers, platforms or both. Prepare from the start by keeping your own subscriber records and storing provider IDs as references rather than primary keys. When the move comes:

Malahide Studio designs, builds and runs this layer month to month for independent media brands, alongside the media products it supports, so billing, sign-in and analytics sit with the same people who think about retention and subscription revenue. If your billing set-up has grown by accident, start a conversation about where to begin.

Common questions

What is the difference between a payments provider and a billing system?

A payments provider moves money: it stores cards, charges them and pays out. A billing system manages plans, renewals and what each subscriber is entitled to. Many providers offer both, but the rules specific to your business still need a home of their own.

What is an entitlement in a subscription product?

An entitlement is a record of what a person can access right now, such as paid articles or a private podcast feed. Subscriptions, gifts and complimentary access all create entitlements, and the product checks entitlements to decide what to show.

How do you stop card-testing attacks on a subscription checkout?

Rate-limit payment attempts by IP address, device and email, add a bot challenge when traffic looks suspicious, and turn on your provider’s fraud screening. Alert on sudden rises in declined payments so you notice an attack early.

Do I need to charge VAT on digital subscriptions?

Usually you charge VAT or sales tax based on where the subscriber lives, at their local rate, and some publications qualify for reduced or zero rates. The rules vary by country, so use a tax calculation service and confirm your classification with an accountant.

Who we work with

We work with a few independent media brands at a time: brands with an opinion, a narrow focus and a hopeful view of the world. If that sounds like you, tell us what your audience keeps asking for.

Start a conversation