Payments, Coupons, Bundles, Earnings
Commerce makes the LMS commercially usable in sandbox mode: free/paid/private courses, coupons, bundles, invoice checkout, student payment history, instructor earning ledger, payout requests, and AI revenue insights.

Workflow
- Teacher/admin configures free, paid, bundle, subscription-placeholder, or private pricing.
- Student checks out; coupon validation returns structured eligibility reasons.
- Captured sandbox payment grants course or bundle enrollments idempotently.
- Instructor ledger calculates net after coupon discount and commission split.
- Instructor requests payout; admin approves, rejects, marks paid, or holds/reverses on refund.
Routes
| Screen | Route | Purpose |
|---|---|---|
| Commerce console | /lms/commerce | Revenue, invoices, payments, coupons, bundles, earnings, payouts. |
| Student payments | /student/payments | Own invoice and receipt history. |
| Instructor earnings | /instructor/earnings | Available balance, pending earnings, payout requests. |
AI Commerce
AI suggests pricing, coupon campaigns, revenue summaries, and instructor earning insights. Suggestions remain drafts and never change price, coupon, payout, or ledger records automatically.
Demo And Developer Notes
Buyer exampleApply a sandbox coupon, confirm a bundle invoice, then inspect instructor earnings after discount.
Developer noteGuided anchors include
commerce-workspace, student-payments-workspace, and instructor-earnings-workspace. Payouts remain manual/admin-approved.- Coupon validation explains rejection reasons.
- Bundle checkout enrolls all active courses.
- Student sees only own payment history.
- Instructor sees only own earnings.