定制 vbanksdk/vbank-php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

vbanksdk/vbank-php-sdk

最新稳定版本:0.0.4

Composer 安装命令:

composer require vbanksdk/vbank-php-sdk

包简介

Laravel SDK to easily work with the VDF Microfinance Bank APIs.

README 文档

README

Latest Version on Packagist Tests Total Downloads

Laravel PHP SDK to easily work with the VDF Microfinance Bank APIs.

Installation

You can install the package via composer:

composer require vbanksdk/vbank-php-sdk

Usage

$vdf = new VBank\SDK\VBank(ACCESSTOKEN, APIKEY, APISECRET);

$vdf->onboard(USERNAME, WALLETNAME, SHORTNAME, WEBHOOKURL,IMPLEMENTATION); // Returns array

// Get your coporate acount details
$vdf->corporateAccount(); // Returns instance of CorporateAccount  resource class

// Create fixed bank account with customer's full details
$vdf->createFixedAccount(firstname, lastname, middlename, dateOfBirth, address, gender, phone, bvn); // Returns instance of FixedAccount  resource class

// Create fixed bank account with customer's BVN and date of birth.
$vdf->createFixedAccountWithBVN(bvn, dateOfBirth); // Returns instance of FixedAccount  resource class

// Create fixed corporate bank account.
$vdf->createFixedCorporateAccount(rcNumber, companyName, incorporationDate, bvn); // Returns instance of FixedCorporateAccount  resource class

// Create virtual account with expiry time.
$vdf->createVirtualAccount(amount, reference, validityTimeout, merchantId, merchantName); // Returns instance of VirtualAccount  resource class

// Update valid amount for virtual account transaction.
$vdf->updateVirtualAccountTransactionAmount(amount, accountReference); // Returns instance of VirtualAccount  resource class

// List banks 
$vdf->bankList();

// Resolve bank account
$vdf->validateBankAccount(accountNumber, bankCode, TransferType::INTER); // Returns instance of Beneficiary resource class

// Intiate bank transfer
$vdf->initiateTransfer(corporateAccount, beneficiary, amount, reference, narration); // Returns instance of Transfer resource class

// Get transaction details 
$vdf->transactionDetails(transactionId): // Returns instance of Transaction resource class

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 27
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-06-21