osenco / jenga
Intuitive Mpesa SDK for PHP Apps. Just Plug 'N Play
dev-master
2020-04-15 09:23 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.5
This package is auto-updated.
Last update: 2024-12-14 22:21:56 UTC
README
Installation
Install via composer
composer require osenco/jenga
Usage
Configure the class
use Osen\Finserve\Jenga; Jenga::init([ "username" => "", "password" => "", "key" => "" ]);
Generate Token
Jenga::generateToken(function ($token) { # do something with token, like save in db return $token; });
Check Account Balance
Jenga::checkAccountBalance($accountId);
Generate Mini Statement
Jenga::generateMiniStatement($accountId);
Account Inquiry
Jenga::accountInquiry($accountId);
Move Money within Equity Bank
Jenga::moveMoneyWithinEquity($data);
Move mobile Money
Jenga::moveMoneyToMobile($data);
Move RTGS Money
Jenga::moveMoneyViaRTGS($data);
Move SWIFT Money
Jenga::moveMoneyViaSWIFT($data);
Move EFT Money
Jenga::moveMoneyViaEFT($data);
Move PesaLink Money to Bank
Jenga::moveMoneyViaPesaLinkToBank($data);
Move PesaLink to Mobile Money
Jenga::moveMoneyViaPesaLinkToMobile($data);
PesaLink Inquiry
Jenga::pesaLinkInqury($phone);
Check Credit Score
Jenga::checkCreditScore($data);
Get Forex Rates
Jenga::getForexRates($countryCode, $currencyCode);