Looking to hire Laravel developers? Try LaraJobs

laravel-kudaopenapi maintained by diadal

Description
KudaBank Open APi for virtual account
Last update
2022/06/20 20:04 (dev-master)
License
Downloads
12

Comments
comments powered by Disqus

Laravel-kudaopenapi

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.

Installation

With Composer

$ composer require diadal/laravel-kudaopenapi
php artisan vendor:publish --provider="Diadal\Kuda\KudaServiceProvider"

Useage

.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);
    }

License

The MIT License (MIT). Please see License File for more information.