Aviatoryona / kcb

KCB Buni API PHP SDK

Home Page:https://sandbox.buni.kcbgroup.com/devportal/apis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KCB Buni API PHP SDK

Table of contents

Installation

composer require osenco/kcb

Instantiation

use Osen\Kcb\Buni;

$buni = new Buni(array(
    'token' => '',
    'env'   => 'sandbox',
));

Usage

Check forex rate

$rate = $buni->forex()->rates('USD');
// or $rate = $buni->forex()->from('EUR')->to('USD')->exchange(100);

// parse response
$json = $rate->json();
$object = $rate->object();

Check account information

$account = $buni->account()->info();
$json = $account->json();
$object = $account->object();

Vooma

Make payment

$pay = $buni->vooma()->pay(100);
$json = $pay->json();
$object = $pay->object();

About

KCB Buni API PHP SDK

https://sandbox.buni.kcbgroup.com/devportal/apis


Languages

Language:PHP 100.0%