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
Requires
- php: ^8.0
- illuminate/contracts: ^8.0||^9.0||^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.12
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.8
- orchestra/testbench: ^10.0.0||^9.0.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
This package is auto-updated.
Last update: 2025-10-28 19:42:39 UTC
README
Prerequisites
You will need the following to get started with you integration...
-
Create an
applicationon the AirtelMoney Developer Portal. -
Write to the AirtelMoney Support Team to get your application approved, here.
Note: Your application won't work until it's approved. You can check the statuses in the portal.
| Status | Explanation |
|---|---|
| NA | Not Approved |
| Partially Approved | UAT Approved |
| Approved | PROD Approved |
Getting started
Installation
composer require bmatovu/laravel-airtel-money
Publishables
php artisan vendor:publish --provider="Bmatovu\AirtelMoney\AirtelMoneyServiceProvider"
Migrations
php artisan migrate
Authentication & PIN
Set credentials
Get the client_id and client_secret from Key Management
php artisan airtel-money:auth
Set disbursement PIN
php artisan airtel-money:pin
Usage
Authentication & KYC
use Bmatovu\AirtelMoney\Facades\AirtelMoney; $token = AirtelMoney::getToken(); $user = AirtelMoney::getUser($phoneNumber);
Collections
use Bmatovu\AirtelMoney\Facades\Collection; $transaction = Collection::receive($phoneNumber, $amount); $transaction = Collection::refund($airtelMoneyId); $transaction = Collection::getTransaction($transactionId); $balance = Collection::getBalance();
Disbursement
use Bmatovu\AirtelMoney\Facades\Disbursement; $transaction = Disbursement::send($phoneNumber, $amount); $transaction = Disbursement::getTransaction($transactionId);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.