Skip to content

diadal/laravel-kudaopenapi

Repository files navigation

Laravel-kudaopenapi

fast payment gateway in Nigeria

Total Downloads License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published