1. Go to this page and download the library: Download akika/laravel-ncba library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
akika / laravel-ncba example snippets
use Akika\LaravelNcba\Ncba;
$ncba = new Ncba();
$ncba = new Ncba($bankCode, $branchCode, $country, $currency);
$bankCode # Bank specific code
$branchCode # Branch specific code
$country # Country name in full e.g. Kenya
$currency # Currency code e.g. KES
$ncba = new Ncba();
$ncba->checkApiHealth();
$ncba = new Ncba();
$response = $ncba->checkTransactionStatus($referenceNumber);