xinyeweb/yii2-asiapay
Composer 安装命令:
composer require xinyeweb/yii2-asiapay
包简介
AsiaPay Hong Kong
关键字:
README 文档
README
AsiaPay Hong Kong
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist xinyeweb/yii2-asiapay "dev-master"
or add
"xinyeweb/yii2-asiapay": "dev-master"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
$asiaPay = new AsiaPayClient('商戶號'); //$orderRef, $amount, $successUrl, $failUrl, $cancelUrl, $remark="", $redirect="", $oriCountry="", $destCountry="" $asiaPay->requestPay(time(), 10, 'https://www.xinyeweb.com', 'https://www.xinyeweb.com', 'https://www.xinyeweb.com');
注意:需要在商戶後台設定好返回鏈接(數據反饋),不要在支付結果頁面更新業務邏輯
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-09-08