2017 © Pedro Peláez
 

library epluspay

CMBC E Plus Pay library

image

choate/epluspay

CMBC E Plus Pay library

  • Monday, August 28, 2017
  • by Choate
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

招行E+支付

安装

基于composer安装, (*1)

php composer.phar require choate/epluspay, (*2)

说明

生成收款二维码接口使用

$channelNo = 'xxxx';
$serviceUrl = 'http://example.com';
$publicKeyNo = 'xxxx';
$lang = 'zh_CN';
$privateKey = 'file_path or \Closure';
$publicKey = 'file_path or \Closure';
$requestId = '请求编号';
$orderNo = '流水号';
$amount = 0.01;
$channelType = QRCodePayOrders::CHANNEL_TYPE_WECHAT;
$encryption = new Sha1WithRSAHelper($privateKey, $publicKey);
// 接口使用
$client = new Client($channelNo, $serverUrl, $publicKeyNo, $lang, $encryption);
$payOrdersClient = new PayOrdersClient($shopId, $notifyUrl, $client);
// 构造支付类型
$payOrders = new QRCodePayOrders($requestId, $orderNo, $amount, $channelType);
// 执行支付接口
$response = $payOrders->run($payOrdersClient);

The Versions

28/08 2017

dev-master

9999999-dev

CMBC E Plus Pay library

  Sources   Download

BSD

The Requires

 

by Avatar Choate