Download the PHP package keenops/laravel-mpesa without Composer
On this page you can find all versions of the php package keenops/laravel-mpesa. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download keenops/laravel-mpesa
More information about keenops/laravel-mpesa
Files in keenops/laravel-mpesa
Package laravel-mpesa
Short Description Laravel wrapper for the Vodacom M-Pesa API, providing a seamless integration experience for Laravel applications
License MIT
Homepage https://github.com/keenops/laravel-mpesa
Informations about the package laravel-mpesa
Vodacom M-Pesa API package for Laravel
Engineered for seamless integration with the Vodacom M-Pesa OpenApi, it offers Laravel developers a streamlined pathway to execute customer-to-business transactions with ease and efficiency.
Installation
You can install the package via composer:
Runing the above command should also publish in a config directory a file named laravel-mpesa.php. If so didnt happen, publish the configuration files by running the command:
Usage
Add Vodacom M-Pesa API credentials to a .env file. The credentials can be obtained here
Customer to Business Transaction
In your controller use like this
Business to Customer Transaction
In your controller:
Business to Business Transaction
In your controller:
Reverse a Transaction
In your controller:
Query Transaction Status
In your controller:
Errors
Specific error codes may be displayed within parenthesis when send or receive operations fail. The most common of these error codes are specified in API documetation found on openapiportal.m-pesa.com
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Kee Nops
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.