SEC-11C
✓ Fully Implemented
Payment Management, Invoices & Receipts PDF, Failed Payments & Reactivation
Step-by-step instructions for paying subscription invoices via toyyibPay (FPX, DuitNow QR, Card) or Manual Bank Transfer, downloading PDF invoices and receipts, and resolving failed or overdue payments.
Step-by-Step Instructions
1. Available Payment Methods
Kariahku.com implements 5 payment methods configured in payment_methods:
- FPX Online Banking (
fpx— toyyibPay): Instant online banking checkout viahttps://toyyibpay.com(orhttps://dev.toyyibpay.comin sandbox mode). - DuitNow QR (
duitnow_qr— toyyibPay): QR code payment via banking and e-wallet apps. - Credit / Debit Card (
card— toyyibPay): Card payment processed by toyyibPay. - Manual Bank Transfer (
manual_transfer— Internal): Direct bank transfer accompanied by proof-of-payment file upload (PDF, JPG, or PNG, max 5 MB) for platform verification. - Institutional Invoice (
institutional_invoice— Internal): Purchase Order / credit terms workflow for MAIN and JAKIM government authorities.
2. Making Subscription Payments
- Open
/{lang}/mosque-admin/subscription(or/main/subscription//jakim/subscription). - Locate your open invoice (status
issuedoroverdue) in the Invoices and Payment History table. - Online Gateway Checkout (toyyibPay): Select
FPX,DuitNow QR, orCardand click Pay. After completing checkout on toyyibPay, you return to/payment/returnwhile the server callback (/payment/toyyibpay-callback) verifies the MD5 signature and activates your subscription. - Manual Bank Transfer (Mosque): Enter the Bank Reference, upload your Payment Proof (PDF/JPG/PNG ≤ 5 MB), and submit. The payment enters
pending_verificationuntil approved at/admin/payments.
3. Viewing Payment History & Downloading Invoices / Receipts
- Download Invoice PDF: Click Invoice PDF (
/payment/invoice?id={invoice_id}) on any invoice row. - Download Official Receipt PDF: Once an invoice is settled (
paid), click Receipt PDF (/payment/receipt?id={receipt_id}) to download the official receipt numberedRCP-YYYYMMDD-....
4. Failed Payments, Outstanding Balances, Suspension & Reactivation
- Failed Payments: If a gateway checkout fails or a manual transfer is rejected, the invoice remains open so you can initiate a fresh payment attempt.
- Overdue & Grace Period: Unpaid invoices past
due_atmove the subscription throughpast_due→ 7-daygrace_period→expired. - Automatic Reactivation: As soon as payment is confirmed,
payment_apply_settled_invoice()automatically transitions the subscription back toactiveand advances the service period dates.
Verified Screenshots & UI Reference
Input Fields & Options Reference
| Document Endpoint | Serial Format | Access Authorization |
|---|---|---|
/payment/invoice?id={id} | INV-YYYYMMDD-XXXXXX | Customer owner (Mosque / Institution) or Platform Billing Admin. |
/payment/receipt?id={id} | RCP-YYYYMMDD-XXXXXX | Customer owner (Mosque / Institution) or Platform Billing Admin. |
/payment/proof?id={id} | Uploaded Proof File | Customer owner or Platform Admin with payments.manage. |
Expected Results
Subscription payments are processed securely, PDF invoices and receipts are downloadable on demand, and expired subscriptions reactivate upon settlement.
Important Notes & Data Boundaries: Invoices remain accessible even when a mosque or institutional subscription has expired so administrators can always download invoices and complete renewal.
Common Errors & Troubleshooting
If you uploaded a manual bank transfer proof and the subscription is not yet active, wait for a Platform Administrator to verify the transfer at /admin/payments.