SEC-11D
✓ Fully Implemented
Platform Billing Administration: Plans, Fees, Discounts, Payment Review & Revenue Reports (/admin/subscriptions & /admin/payments)
Step-by-step instructions for Super Administrators to manage subscription plans, configure fees and annual discounts, manage trial accounts, verify manual payments, and review revenue reports.
Step-by-Step Instructions
1. Managing Subscription Plans, Fees & Annual Discounts (/admin/subscriptions)
- Open
/{lang}/admin/subscriptions. - In the plan pricing form, configure the list prices for
monthly,quarterly,semiannual, andannualintervals and set the Annual Discount Percentage (0% to 90%, default 10%). - Click Save Pricing.
- In the customer subscriptions table, you can inspect trial accounts, issue invoices, or apply administrative lifecycle transitions with a mandatory reason note. You can also run daily lifecycle maintenance via CLI:
php database/manage.php subscription-maintenance
2. Reviewing Manual Payments & Gateway Settings (/admin/payments)
- Open
/{lang}/admin/payments. - In the Pending Payment Verification queue (`pending_verification`):
- Click Proof to inspect the uploaded bank slip via
/payment/proof?id={payment_id}. - Enter a Verification Note and click Verify (marks the invoice `paid`, generates an official receipt, and activates the subscription) or Reject.
- Click Proof to inspect the uploaded bank slip via
- In the Payment Gateway Configuration panel, configure toyyibPay mode (`sandbox` or `production`), category code, and secret key (encrypted at rest using AES-256-GCM).
3. Generating Revenue Reports
At the top of /{lang}/admin/payments, the revenue summary cards report settled revenue (`paid_total`), pending verification total (`pending_total`), failed payments (`failed_total`), and overdue invoice balances (`overdue_total`).
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Administrative Capability | Route | Required Permission |
|---|---|---|
| Configure Plan Fees & Annual Discounts | /admin/subscriptions | subscriptions.manage |
| Manage Trial Accounts & Lifecycle Status | /admin/subscriptions | subscriptions.manage |
| Verify Manual Transfers & Issue Receipts | /admin/payments | payments.manage |
| Configure toyyibPay & View Revenue Reports | /admin/payments | payments.manage |
Expected Results
Subscription plans, fees, discounts, manual payment verifications, and revenue summaries are managed with full audit logging.
Important Notes & Data Boundaries: Gateway secret keys are encrypted at rest with AES-256-GCM via `payment_encrypt_secret()`.
Common Errors & Troubleshooting
Schedule php database/manage.php subscription-maintenance daily to automatically process trial expirations, overdue transitions, and 30/14/7/1-day renewal reminders.