dev-master
9999999-devAsiaPay Hong Kong
BSD-3-Clause
The Requires
by hoter
extension yii2
v1.0
1.0.0.0AsiaPay Hong Kong
BSD-3-Clause
The Requires
by hoter
extension yii2
AsiaPay Hong Kong
AsiaPay Hong Kong, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist xinyeweb/yii2-asiapay "dev-master"
or add, (*4)
"xinyeweb/yii2-asiapay": "dev-master"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
$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');
注意:需要在商戶後台設定好返回鏈接(數據反饋),不要在支付結果頁面更新業務邏輯, (*7)
AsiaPay Hong Kong
BSD-3-Clause
extension yii2
AsiaPay Hong Kong
BSD-3-Clause
extension yii2