fast payment gateway in Nigeria
This package provides a simple way to work with Kuda Open Api. To learn all about it, head over to Kuda Open Api documentation.
$ composer require diadal/laravel-kudaopenapi
php artisan vendor:publish --provider="Diadal\Kuda\KudaServiceProvider"
.evn
KUDA_PRIVATE_KEY= <RSAKeyValue>******************
KUDA_PUBLIC_KEY= <RSAKeyValue>-******************
KUDA_CLIENT_KEY= ******************
KUDA_BASE_URL= "https://kuda-openapi.kuda.com/v1"
Controller
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Diadal\Kuda\KudaOpenApi;
class InvoiceController extends Controller
{
/**
* __construct
*
* @return void
*/
public function __construct()
{
...
$this->KudaOpenApi = new KudaOpenApi();
}
Examples of what you can do:
public function GetBankList()
{
return $this->KudaOpenApi->GetBankList();
}
// this work with any motheds Api called mainData is default KudaOpenApi data or payload
public function OtherMethods()
{
$data = [...];
return $this->KudaOpenApi->OtherMethods($data);
}
The MIT License (MIT). Please see License File for more information.