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.
Step-by-Step Instructions
A. Free One-Month Trial
- 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 atrialingsubscription on the Mosque Standard Plan (mosque-standard). - Trial Start & End Dates: The trial spans exactly 1 calendar month from approval (
trial_starts_attotrial_ends_at), clamped accurately to month-end dates viasubscription_add_month_count(). - One-Trial-Per-Mosque Rule: Setting
mosques.trial_consumed = 1ensures each mosque receives the free trial once. - 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. - Trial Expiration: When
trial_ends_atpasses without payment:- Subscriptions with an open invoice transition to
past_dueand then a 7-daygrace_periodbefore becomingexpired. - When
expiredorsuspended, 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.
- Subscriptions with an open invoice transition to
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):
- Viewing Current Plans: Visit
/{lang}/mosque-admin/subscription(or/main/subscription//jakim/subscription) to view current plan status, period end date, and interval pricing. - Changing Plans or Renewing: Select a Plan and Billing Interval (
monthly,quarterly,semiannual, orannual) and click Generate Renewal Invoice.
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Plan Code | Customer Type | Billing Interval | List Price | Discount | Net Payable |
|---|---|---|---|---|---|
mosque-standard | Mosque (mosque) | Monthly (monthly) | RM 50.00 | 0% | RM 50.00 |
mosque-standard | Mosque (mosque) | Quarterly (quarterly) | RM 150.00 | 0% | RM 150.00 |
mosque-standard | Mosque (mosque) | Semi-Annual (semiannual) | RM 300.00 | 0% | RM 300.00 |
mosque-standard | Mosque (mosque) | Annual (annual) | RM 600.00 | 10% (RM 60.00) | RM 540.00 |
main-standard | MAIN (main) | Monthly / Annual | RM 500.00 / RM 6,000.00 | 0% / 10% | RM 500.00 / RM 5,400.00 |
jakim-standard | JAKIM (jakim) | Monthly / Annual | RM 2,000.00 / RM 24,000.00 | 0% / 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.