bmatovu/laravel-airtel-money

Laravel Airtel Money API Integration

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/bmatovu/laravel-airtel-money

v1.0.0 2025-10-31 03:32 UTC

This package is auto-updated.

Last update: 2025-10-31 03:39:12 UTC


README

Latest Stable Version Code Quality Code Coverage Tests Documentation

Prerequisites

You will need the following to get started with your integration:

  1. Create an application on the Airtel Money Developer Portal.

  2. Write to the Airtel Money Support Team to get your application approved, here.

Note: Your application will not work until it’s approved. You can confirm your app's status in the portal.

Status Meaning
NA Not Approved
Partially Approved Approved for UAT
Approved Approved for PROD

Getting Started

Installation

composer require bmatovu/laravel-airtel-money

Publishables

php artisan vendor:publish --provider="Bmatovu\AirtelMoney\AirtelMoneyServiceProvider"

Database Migrations

php artisan migrate

Authentication & PIN

Set Credentials

Retrieve your client_id and client_secret from Key Management

php artisan airtel-money:auth

Set Disbursement PIN

php artisan airtel-money:pin

Usage

Authentication

use Bmatovu\AirtelMoney\Facades\Authentication;

$token = Authentication::getToken();

Collections

use Bmatovu\AirtelMoney\Facades\Collection;

$transaction = Collection::receive($phoneNumber, $amount);

$transaction = Collection::refund($airtelMoneyId);

$transaction = Collection::getTransaction($transactionId);

$balance     = Collection::getBalance();

$user        = Collection::getUser($phoneNumber);

Disbursement

use Bmatovu\AirtelMoney\Facades\Disbursement;

$transaction = Disbursement::send($phoneNumber, $amount);

$transaction = Disbursement::getTransaction($transactionId);

$user        = Disbursement::getUser($phoneNumber);

Testing

composer test

Credits

License

This package is open-source software licensed under the MIT License.