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.

SEC-11A ✓ Fully Implemented

Free One-Month Trial, Subscription Plans & Annual Discounts (/mosque-admin/subscription)

Complete documentation of the free 1-month trial lifecycle (activation on approval, start/end dates, status, upgrade, expiration) and monthly/annual subscription plans with annual discounts.

Fully Implemented: This module is fully implemented and active in the current Kariahku.com system.
Purpose of Function Explain the exact trial and subscription plan rules implemented in Kariahku.com.
Prerequisites An `active` mosque with `subscriptions.view` permission at `/mosque-admin/subscription`.
Required User Permissions Mosque Scope: subscriptions.view (/mosque-admin/subscription) | Institution Scope: subscription.view
System Route /mosque-admin/subscription

Step-by-Step Instructions

A. Free One-Month Trial

  1. Mosque Registration & Trial Activation: When a mosque application is approved at /admin/mosques, subscription_start_mosque_trial() automatically provisions a billing customer (billing_customers) and activates a trialing subscription on the Mosque Standard Plan (mosque-standard).
  2. Trial Start & End Dates: The trial spans exactly 1 calendar month from approval (trial_starts_at to trial_ends_at), clamped accurately to month-end dates via subscription_add_month_count().
  3. One-Trial-Per-Mosque Rule: Setting mosques.trial_consumed = 1 ensures each mosque receives the free trial once.
  4. Subscription Upgrade: At any point during trialing, the Mosque Administrator can open /{lang}/mosque-admin/subscription, select a billing interval, and generate a paid invoice.
  5. Trial Expiration: When trial_ends_at passes without payment:
    • Subscriptions with an open invoice transition to past_due and then a 7-day grace_period before becoming expired.
    • When expired or suspended, paid management features (`microsite_customization`, `announcements`, `activity_publishing`, `committee_management`, `editorial_publishing`, `kariah_membership`) are write-locked while all existing data and prayer times remain preserved.

B. Subscription Plans & Annual Payment Discounts

The table below lists the seeded subscription plans and pricing intervals in subscription_plans and subscription_plan_prices (configurable by Super Admin at /admin/subscriptions):

  1. Viewing Current Plans: Visit /{lang}/mosque-admin/subscription (or /main/subscription / /jakim/subscription) to view current plan status, period end date, and interval pricing.
  2. Changing Plans or Renewing: Select a Plan and Billing Interval (monthly, quarterly, semiannual, or annual) and click Generate Renewal Invoice.

Verified Screenshots & UI Reference

Free One-Month Trial Status, Subscription Plans, and Annual Discounts (/mosque-admin/subscription). 🔍 Click image to enlarge preview

Input Fields & Options Reference

Plan CodeCustomer TypeBilling IntervalList PriceDiscountNet Payable
mosque-standardMosque (mosque)Monthly (monthly)RM 50.000%RM 50.00
mosque-standardMosque (mosque)Quarterly (quarterly)RM 150.000%RM 150.00
mosque-standardMosque (mosque)Semi-Annual (semiannual)RM 300.000%RM 300.00
mosque-standardMosque (mosque)Annual (annual)RM 600.0010% (RM 60.00)RM 540.00
main-standardMAIN (main)Monthly / AnnualRM 500.00 / RM 6,000.000% / 10%RM 500.00 / RM 5,400.00
jakim-standardJAKIM (jakim)Monthly / AnnualRM 2,000.00 / RM 24,000.000% / 10%RM 2,000.00 / RM 21,600.00

Expected Results

Mosque and institutional administrators understand trial dates, plan pricing, annual discounts, and how to generate renewal invoices.
Important Notes & Data Boundaries: Already-issued invoices lock in their subtotal, discount, and amount due at issuance time.

Common Errors & Troubleshooting

If paid mosque management forms return HTTP 402, open /mosque-admin/subscription and pay the open renewal invoice to immediately restore full access.