Subscriptions are harder than one-time payments
Recurring billing introduces a class of problems that one-time payments do not have. Here is what they are.
One-time payments are a solved problem. You verify the transaction, update your database, move on. Subscriptions are a different category entirely.
Renewal is not guaranteed
A subscription renewing next month depends on the customer's payment method still being valid, their account having sufficient balance, and the provider successfully processing the charge. Any of these can fail.
You need a strategy for each failure mode: retry logic, grace periods, dunning emails, and eventually cancellation. Most teams underestimate how much code this is until they are already in production.
State machines matter
A subscription is not just active or cancelled. It can be trialing, past_due, paused, unpaid, or cancelled. Transitions between states need to be explicit and auditable.
If you model subscription state as a boolean, you will eventually have a customer who is technically active but has not paid in three months, or a customer who cancelled but is still being charged.
Proration is a product decision, not a technical one
When a customer upgrades mid-cycle, do you charge them immediately for the difference? Credit them on the next invoice? Give them the new plan immediately or at the next renewal?
There is no universally correct answer. But you need to decide before you build, because the answer shapes your data model. Changing it later is painful.
Idempotency matters more here
With one-time payments, a duplicate charge is bad. With subscriptions, a duplicate renewal charge is a support ticket, a chargeback, and a churned customer.
Every renewal attempt needs to be idempotent. If your job queue retries a renewal job, it should not charge the customer twice.
What a good subscriptions API looks like
You should be able to create a plan, attach a customer, and let the billing engine handle renewals, retries, and state transitions. Your application code should only need to respond to events subscription.renewed, subscription.past_due, subscription.cancelled not orchestrate them.
That is the model Access is built around. Define the plan, attach the customer, handle the events.