2017 © Pedro Peláez
 

project equity

Equity Bank eazzy api library

image

ictianspecialist/equity

Equity Bank eazzy api library

  • Tuesday, April 25, 2017
  • by ictianspecialist
  • Repository
  • 2 Watchers
  • 3 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 2 Versions
  • 22 % Grown

The README.md

Equity Eazzy Api Lib

Eazzy API is a platform that features new and disruptive capabilities. It converts Equity’s full range of expertise in payments, banking, insurance, brokerage, wealth management and telco into simple to use and secure APIs for ready integrations to mobile apps, e-commerce sites and other systems. Below are the main services offered, (*1)

  • Online Remittance
  • Purchase Airtime
  • Get Payment Status
  • Create Payment The library provided here helps you do above tasks easily

Installation

To install just run, (*2)

$ composer require ictianspecialist/equity

Usage

1. Initialization

<?php
use Equity\Equity\Equity;
$consumer_key = 'your-consumer-key';
$consumer_secret = 'your-consumer-secret';
$equity = new Equity($consumer_key,$consumer_secret);

2. Buy Airtime

try{
    $phone_number = '0719xxxxxx';
    $amount = 50;
    $provider = 'safaricom';
    $reference = 'artme-1';
    $equity->buyAirtime($phone_number,$amount,$provider,$reference);
}catch(\Exception $e){
    print_r($e->getMessage());
}

3. Online Remittance

try{
    $destination = [
        'accountNumber'=>123456,
        'bicCode'=>'KCBLKENX005',
        'mobileNumber'=>'',
        'walletName'=>'Doe acc.',
        'bankCode'=>'KCBL',
        'branchCode'=>'006'
    ];
    $transfer = [
        "countryCode" => "KE",
      "currencyCode" => "KES",
        "amount" => "200",
        "paymentType" => "",
        "paymentReferences" => ['referees','refereed','reedee'],
        "remarks"=>"Thanks for your business"
    ];
    $reference = 'item_001011';
    $sender_name = 'Hosea Kangogo';
    $equity->sendMoney($destination,$transfer,$reference,$sender_name);
}catch(\Exception $e){
    print_r($e->getMessage());
}

The Versions

25/04 2017

dev-master

9999999-dev

Equity Bank eazzy api library

  Sources   Download

MIT

eazzy equity bank eazzy api equity kenya

25/04 2017

1.0.0

1.0.0.0

Equity Bank eazzy api library

  Sources   Download

MIT

eazzy equity bank eazzy api equity kenya