bnlambert / momo-php-sdk
This package is abandoned and no longer maintained.
No replacement package was suggested.
MTN momo transactions in Cameroon
dev-master
2020-01-11 19:51 UTC
Requires
- php: >=7.1
- guzzlehttp/guzzle: ~6.0
This package is auto-updated.
Last update: 2021-03-11 22:22:40 UTC
README
Handles MTN momo transactions in Cameroon
Installation
composer require bnlambert/momo-php-sdk:dev-master
Implementation
Receive payment online
To receive payment online, call the checkOut
method. This method requires two parameter i.e. the client's number and the amount the client needs to pay.
$mtn->checkOut(string $phone, int $amount);
Example
<?php
require 'vendor/autoload.php';
use BNLambert\Momo\Mtn;
$params = [
'merchant_email' => 'merchant@domain.com'
];
$mtn = new Mtn($params);
$res = $mtn->checkOut('67000000', 500);
var_dump($res);
?>
License
MIT