Integrating MTN Cameroon Mobile money to PHP Application

Published Oct 18, 2019 - 1 minute read
MTN Cameroon Mobile Money

MTN Cameroon Mobile Money


So I recently published this plugin to ease MTN Cameroon Mobile Money payment in your PHP/Laravel application.

But through out this blog post, I'll focus on how to integrate it to your your vanilla PHP Application. Let's dive right in.


To Install the application, you will need to pull it in from composer with the following command.

composer require malico/momo
* Works only for Version 2+

With that, you'll need to create an account as a developer at

Landing Page MTN Developer Page

Landing Page MTN Developer Page


Next. Within your PHP Code, you'll need to run an instance of the Momo Class. Something like this.


require 'composer/autoload.php';

use Malico\Momo\Momo;

$momo = new Momo('676956703', 100);

// The first parameter is the number with the country code [string|int] 
// the second parametr is the amount [int]

 * Your can also do this.
 * $momo = (new Momo())
 *         ->amount(100)
 *         ->email('')
 *         ->tel(67777777);

$momo->email('[email protected]');

$transaction = $momo->pay();

    // Payment was successful
    // do something, save to Database or anyting
} else {
    // Failed Transaction
    // do something Display error message 
    // echo $transaction->desc;
* Make sure you include the email method

If you're working working on a laravel project, I've a way better blog post that will guide you. Click Here