plan variable (and feature-specific limits), you can gate functionality in your application based on the customer’s subscription tier.
Architecture
Step 1: Define your tiers
Decide what each tier includes:| Feature | Basic | Pro | Enterprise |
|---|---|---|---|
| Max projects | 3 | 10 | 50 |
| Export | No | Yes | Yes |
| API access | No | Yes | Yes |
| Priority support | No | No | Yes |
| SSO | No | No | Yes |
Step 2: Create licenses with tier variables
When a customer subscribes, create a license and set the variables:Step 3: Read tier variables in the SDK
Step 4: Handle plan upgrades
When a customer upgrades (e.g., Basic → Pro), update their license variables:Stripe integration
Map Stripe price IDs to plan tiers:Displaying tier info in the app
Show users what their plan includes and offer upgrade prompts:Next steps
- App & License Variables; Variable documentation
- Commerce; Sell tiers through Stripe with product mappings
- Custom Stripe webhooks; Self-hosted Stripe integration when you need it
- Subscription Lifecycle; Managing subscription state