2 min readSep 10, 2022
Kudaping — A Laravel Package for Kuda Bank Open API
Installation:
- Install using composer
composer require emiracle/kudaping
If you are on laravel 5.5 you can skip the next installation instructions.
2. Proceed to your app.php file in your config folder to register the provider.
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
/*
* Package Service Providers...
*/
/*
* Application Service Providers...
*/
...
\eMiracle\Kudaping\KudapingServiceProvider::class
],
3. In the aliases array in you app.php file add Kudaping alias.
'aliases' => Facade::defaultAliases()->merge([
// 'ExampleClass' => App\Example\ExampleClass::class,
'Kudaping'=>\eMiracle\Kudaping\Facades\Kudaping::class,
])->toArray(),
4. Publish the configuration file using this command.
php artisan vendor:publish --provider="eMiracle\Kudaping\KudapingServiceProvider"
5. Set your app environment (test/live), add your email address and your API key gotten from here.
KUDA_API_KEY="*****************"
KUDA_EMAIL_ADDRESS="*********@gmail.com"
KUDA_ENVIRONMENT="test"
If you do no have a Kuda Bank developer account already, head over to kuda bank developer portal and signup for Kuda bank Open API.
Your dashboard should look something like this.