mantey / mazzuma
An easy way to integrate mazzuma api into your payment application
dev-master
2020-09-29 11:52 UTC
Requires
- php: >=5.6.0
This package is not auto-updated.
Last update: 2025-05-08 08:41:41 UTC
README
This package provide an easy way to integrate Mazzuma into your payment web application.
Mazzuma allows you to gain mobile money payments from customers and clients with optimal ease and at no extra charges (standard mobile money operator charges apply).
Installation
You can install the package via composer:
composer require mantey/mazzuma
Usage
Head over to the mazzuma dashboard and create a new Mazzuma account to get your API key.
Open the /config/mazzuma.php
and set the key with your Mazzuma API Key.
Mazzuma Mobile Money Payment
require "vendor/autoload.php" use Mantey\Mazzuma\Mazzuma; //Make Mobile Money Pament $response = (new Mazzuma('mobile-money')) ->makePayment([ "price" => 1, "network" => "mtn", "recipient_number" => "026xxxxxxx", "sender" => "024xxxxxxx", "option" => "rmta", "orderID" => "123342" ]); print_r($response); // Verify Mobile Money Pament $verifyID = '1223234'; $response = (new MazzumaApi('mobile-money')) ->verify($verifyID); print_r($response);
MAZ Token Payment
require "vendor/autoload.php" use Mantey\Mazzuma\Mazzuma; //Make Token Pament $response = (new Mazzuma('token')) ->makePayment([ "amount"=> 1, "recipient"=> "", "sender"=> "", ]); print_r($response); // Verify Token Pament $hashVerifyID = '1223234'; $response = (new MazzumaApi('token')) ->verify($hashVerifyID); print_r($response);
Mazzuma Payment Extras
require "vendor/autoload.php" use Mantey\Mazzuma\Mazzuma; //Get Balance $response = (new Mazzuma('token')) ->getBalance(); print_r($response);
Contributing
Please report any issue you find in the issues page. Pull requests are always welcome.
License
Mazzuma is open-sourced software licensed under the MIT license.