CartThrob Subscriptions
CartThrob Subscriptions sells recurring payments through your CartThrob store. A customer checks out once. CartThrob saves a reusable payment reference with your payment gateway and charges it again on the schedule the customer bought.
Subscriptions 6.0.0 requires CartThrob 10.0.1 or newer, ExpressionEngine 6.1 or newer, and PHP 8.0 or newer.
Subscriptions ships with Permissions Manager. The Subscriptions package includes CartThrob Permissions Manager, and Subscriptions requires it. Permissions Manager controls the front-end access a subscription can grant, such as a members-only video library. Billing changes are listed in the Subscriptions changelog. Access changes are listed in the Permissions Manager changelog.
How a subscription works
- You define the terms. Create a Plan in the Control Panel, or add a Subscription Settings field to a product. The terms are the price, the billing interval, any trial, and the number of payments.
- The customer checks out. The first payment is collected at checkout. CartThrob creates an Order and an individual Subscription for that customer. The Subscription stores its own copy of the terms.
- CartThrob renews it. A scheduled rebill command charges each Subscription when it is due and creates a renewal Order.
- Access follows the Subscription. Permissions attached to the Plan are assigned to the customer. Templates check them with
has_subscription_permission.
Subscription notifications
Subscriptions adds its own events to CartThrob’s notifications, so you can email customers as a Subscription moves through its life: a successful renewal, a declined or final-failed payment, a cancellation, a replaced card, and the ways a Subscription can lapse. These are unique to Subscriptions — ordinary CartThrob notifies on a single checkout, while a Subscription keeps billing over time and has its own lifecycle to report.
To send one, map an ExpressionEngine template to the matching event in the Control Panel. CartThrob emails it when that event happens, addressed to the member’s current email; nothing is sent for an event you have not mapped. See Notifications for the full event list and recipient behavior.
Start here
| You want to… | Read |
|---|---|
| Set up a store and sell your first subscription | Sell your first subscription |
| Understand Plans, Subscriptions, saved cards and permissions | Key concepts |
| Know what Open, Hold, Pending and Closed mean, and whether a customer keeps access | Subscription statuses and access |
| Schedule renewals and handle failed payments | Rebilling |
| Find your way around the Control Panel: Subscriptions, Plans, Subscribers, Settings | Control Panel |
| Resolve a payment that needs review | Payment review and recovery |
| Email customers about renewals and cancellations | Notifications |
| See how the example templates fit together | Example templates |
| Look up a template tag | Tags |
| Upgrade Subscriptions | Upgrading, then the changelog for every change |
Payment gateways
Automatic renewals need a gateway that can save a card and charge it later. Use Stripe Payments, classic Stripe, or Authorize.net with CIM enabled. PayPal, Mollie, Opayo/Sage and the Dummy gateway cannot be used for subscriptions. See Eligible payment gateways.