承接 ictianspecialist/equity 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ictianspecialist/equity

Composer 安装命令:

composer create-project ictianspecialist/equity

包简介

Equity Bank eazzy api library

README 文档

README

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

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

Installation

To install just run

$ 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());
}

统计信息

  • 总下载量: 39
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固