Enrollment Plugins
Enrollment plugins handle subscription-based products and recurring orders.
| Adapter Key | Description | Preset |
|---|---|---|
shop.unchained.enrollments.licensed | Licensed subscription with period-based access | base |
How Enrollments Work
- Customer purchases a subscription product (
PLAN_PRODUCT) - An enrollment is created linking the customer to the product
- The enrollment adapter determines billing periods
- Orders are automatically generated for each period
- Access is granted based on active periods
Key Concepts
Enrollment Status
| Status | Description |
|---|---|
INITIAL | Enrollment created but not yet active |
ACTIVE | Subscription is active |
PAUSED | Paused because of overdue payments |
TERMINATED | Permanently ended |
Periods
Each enrollment tracks periods which represent billing cycles: start, end, isTrial, and the orderId of the order generated for the period.
Creating Custom Enrollment Plugins
See Custom Enrollment Plugins for creating your own enrollment adapters.