- Download the module from Merchant Gateway (available as soon as you have sandbox or live credentials).
- Upload the
modulesfolder into your WHMCS root. - WHMCS Admin → Setup → Payments → Payment Gateways → All Payment Gateways → activate M-Pesa (MAA INVEST Pay).
- 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.
- 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).
MAA INVEST Pay Docs