implement-subscription-billing
Installation
SKILL.md
Implement Subscription Billing
When To Use
Use this skill when installing Cashier, managing customer plans, redirecting users to the Stripe portal, or subscribing users to a plan.
Workflow
- Verify Billable Trait: Ensure the user model uses the
Laravel\Cashier\Billabletrait. - Setup Billing Portal: Register routes to redirect users to Stripe's Customer Portal.
- Configure Webhooks: Expose a webhook endpoint and register the Stripe webhook key in
.env. - Enforce Access: Create middleware to check for active plans.