MAA INVEST Pay Docs
Integrations

WHMCS module

Install and configure the M-Pesa gateway module for WHMCS.

  1. Download the module from Merchant Gateway (available as soon as you have sandbox or live credentials).
  2. Upload the modules folder into your WHMCS root.
  3. WHMCS Admin → Setup → Payments → Payment Gateways → All Payment Gateways → activate M-Pesa (MAA INVEST Pay).
  4. Enter the Merchant ID and API Secret: the test pair while testing, the live pair after. Set Convert To For Processing to Kenyan Shilling (KES) if your invoices use another currency.
  5. The webhook URL is set automatically to https://YOUR-WHMCS/modules/gateways/callback/maainvest.php. It must be public HTTPS.

Registrars who resell hosting can also use the MAA INVEST Pay provisioning module to sell the gateway as a WHMCS product (see the README in that zip).

Stuck on an integration? Open a ticket from the Support page in your account and include your invoice_id, the time, and the HTTP status you returned.