Enrollment Plugins
Enrollment plugins handle subscription-based products and recurring orders.
Available Plugins
| Adapter Key | Description | Base Preset |
|---|---|---|
shop.unchained.enrollments.licensed | Licensed subscription with period-based access | Yes |
How Enrollments Work
Enrollments in Unchained manage subscription products:
- 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
Enrollment Flow
Key Concepts
Enrollment Status
| Status | Description |
|---|---|
INITIAL | Enrollment created but not yet active |
ACTIVE | Subscription is active |
PAUSED | Temporarily paused (can resume) |
TERMINATED | Permanently ended |
Periods
Each enrollment tracks periods which represent billing cycles:
start- Period start dateend- Period end dateisTrial- Whether this is a trial periodorderId- Associated order for this period
Creating Custom Enrollment Plugins
See Custom Enrollment Plugins for creating your own enrollment adapters.