Overview
The cwhost M-Pesa WHMCS Plugin enables hosting companies and service providers to accept M-Pesa STK Push payments directly within WHMCS invoices.
Key Features
-
✔ STK Push for WHMCS invoices
-
✔ Automatic invoice payment confirmation
-
✔ License verification support
-
✔ Manual payment fallback (Paybill)
-
✔ Compatible with WHMCS 8.x+
Requirements
-
WHMCS installed
-
Safaricom Daraja API credentials
-
Valid plugin license from cwhost.cloud
-
SSL-enabled domain
Installation Steps
-
Download the cwhost M-Pesa WHMCS Plugin.
-
Upload plugin files to:
-
Log in to WHMCS Admin.
-
Navigate to System Settings → Payment Gateways.
-
Activate M-Pesa STK Push.
-
Enter Daraja credentials and license key.
-
Save changes.
How It Works
-
Client views invoice in WHMCS.
-
Selects Pay with M-Pesa.
-
Enters phone number.
-
Receives STK prompt.
-
Invoice is marked Paid automatically.
Manual Payment Option
If STK Push fails, clients can pay manually:
-
Paybill: Provided by merchant
-
Account Number: Invoice Number
-
Amount: Invoice Total
Client clicks Confirm Payment after completion.
Troubleshooting
-
Confirm callback URL is accessible
-
Ensure invoice status is Unpaid
-
Verify Daraja credentials are correct
-
Check WHMCS activity logs for errors