Connecting mosques and communities
📖 Help Center & User Manual · Documentation Version 1.0

Kariahku.com User Manual & Help Center

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Kariahku.com Multi-Tenant Mosque Management System

SEC-11D — Platform Billing Administration: Plans, Fees, Discounts, Payment Review & Revenue Reports (/admin/subscriptions & /admin/payments)

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Documentation Version: 1.0
Generated On: 2026-12-05 00:43 UTC
Articles: 1

Table of Contents

  1. [SEC-11D] Platform Billing Administration: Plans, Fees, Discounts, Payment Review & Revenue Reports (/admin/subscriptions & /admin/payments) — Section 11: Subscription and Billing Management
SEC-11D · Section 11: Subscription and Billing Management ✓ 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.

Purpose of Function Enable Platform Billing Administrators to govern pricing, verify bank transfer proofs, configure gateway credentials, and monitor billing revenue.
Prerequisites Signed in as `super_admin` (`subscriptions.manage` and `payments.manage`).
Required User Permissions Global Scope: subscriptions.manage (/admin/subscriptions) & payments.manage (/admin/payments)

1. Managing Subscription Plans, Fees & Annual Discounts (/admin/subscriptions)

  1. Open /{lang}/admin/subscriptions.
  2. In the plan pricing form, configure the list prices for monthly, quarterly, semiannual, and annual intervals and set the Annual Discount Percentage (0% to 90%, default 10%).
  3. Click Save Pricing.
  4. 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)

  1. Open /{lang}/admin/payments.
  2. 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.
  3. 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`).

Subscription Plan Administration (/admin/subscriptions) and Payment Verification & Revenue Reports (/admin/payments).
Subscription Plan Administration (/admin/subscriptions) and Payment Verification & Revenue Reports (/admin/payments).

Input Fields & Options Reference

Administrative CapabilityRouteRequired Permission
Configure Plan Fees & Annual Discounts/admin/subscriptionssubscriptions.manage
Manage Trial Accounts & Lifecycle Status/admin/subscriptionssubscriptions.manage
Verify Manual Transfers & Issue Receipts/admin/paymentspayments.manage
Configure toyyibPay & View Revenue Reports/admin/paymentspayments.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.