Download the PHP package akika/laravel-ncba without Composer
On this page you can find all versions of the php package akika/laravel-ncba. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akika/laravel-ncba
More information about akika/laravel-ncba
Files in akika/laravel-ncba
Package laravel-ncba
Short Description The Laravel NCBA package allows you to transfer money through the NCBA Open Banking APIs. The package supports Laravel version 5 and above.
License MIT
Homepage https://github.com/Akika-Digital/laravel-ncba
Informations about the package laravel-ncba
Laravel NCBA Package by Akika Digital
The Laravel NCBA package allows you to transfer money through the NCBA Open Banking APIs. The package supports Laravel version 5 and above.
Installation
You can install the package via composer:
After installing the package, publish the configuration file using the following command:
This will import ncba.php config file in your project config directory where you can set your NCBA related parameters and other configuration options.
.env file Setup
Add the following configurations into your .env file
Function Responses
Check API Health returns a String while all the others return a JSON String.
Usage
Initialize NCBA
NCBA class can be initialized in either of the 2 ways shown above. However, to perform a transaction, use the second initialization formula.
Check API Health
Response
Returns a String response, either Healthy
or Not Healthy
.
Check Transaction Status
Success Response
Below is a sample result for a successful transaction.
MPesa Phone Number Validation
Send Money to Another NCBA Customer (Internal Transfer)
Send Money to a Non-NCBA Customer (External Transfer)
Send Money via RTGS (External Transfer)
Send Money via Pesalink (External Transfer)
Send Money To Mobile via M-Pesa
Sample Responses
Successful Transaction Sample Response
Unsuccessful Transaction Sample Response
Transaction Status API Response
License
The Laravel NCBA package is open-sourced software licensed under the MIT license. See the LICENSE file for details.
All versions of laravel-ncba with dependencies
illuminate/support Version ^8.0 | ^9.0 | ^10.0 | ^11.0
illuminate/http Version ^8.0 | ^9.0 | ^10.0 | ^11.0
guzzlehttp/guzzle Version ^7.5