Technical guide6 min read · Updated · By the AdultDevLab team

Subscription and access states: getting entitlements right

“Is this person allowed to see this?” sounds simple until trials, rebills, cancellations, refunds and chargebacks arrive. A clear state model, changed only by verified billing events, prevents both lost revenue and angry members.

The states

StateTypical accessEntered when
TrialLimited or full, until trial endProvider confirms trial sign-up
ActiveFullProvider confirms initial payment or rebill
Cancelled (paid through)Full until period endMember cancels; no further rebills
Rebill failed (grace)Your choice: full, limited or noneProvider reports a declined rebill
ExpiredNonePeriod ended without renewal
Refunded / charged backNone, often flaggedProvider reports refund or chargeback

Drive states from verified events

The browser redirect after payment is a convenience, not proof. Access should change only when the provider’s server-to-server notification arrives and is verified (signature, source or a confirming API call, depending on the provider).

Make events idempotent

Providers retry notifications. Store each event’s unique identifier and ignore duplicates, so a retried rebill does not extend access twice or credit tokens twice.

Handle out-of-order events

A cancellation can arrive after an expiry, or a refund after a rebill. Each event should carry its own timestamp, and state changes should be computed from the full history rather than “last event wins”.

Keep a history

Store every event and every state change. When a member asks why they lost access, support should see the answer in one screen.

Try the states in the Membership demo.

Software and demos to inspect

Related services

Tell us what you are building

Send a brief or a single technical question. We reply by email; there is no obligation and no phone number required.