dev-master
9999999-dev https://bitbucket.org/lionweng/laravel_4_allpayAllpay Service Provider for Laravel 4.
MIT
by Lion Weng
laravel allpay
Wallogit.com
2017 © Pedro Peláez
Allpay Service Provider for Laravel 4.
"require": { "lionweng/laravel_4_allpay": "dev-master", (*1)
'providers' => array( // ..., (*2)
'Lionweng\Allpay\AllpayServiceProvider',
'aliases' => array( // ... 'Allpay' => 'Lionweng\Allpay\Facade\Allpay',, (*3)
<?php return array(, (*4)
'ServiceURL' => "https://payment.allpay.com.tw/Cashier/AioCheckOut", 'HashKey' => "hashkey", 'HashIV' => "hashiv", 'MerchantID' => "merchantid"
);, (*5)
Allpay::instance()->Send['ReturnURL'] = "<收到付款完成通知的伺服器端網址>"; Allpay::instance()->Send['ClientBackURL'] = "<歐付寶返回按鈕導向的瀏覽器端網址>"; Allpay::instance()->Send['OrderResultURL'] = "<收到付款完成通知的瀏覽器端網址>"; Allpay::instance()->Send['ChoosePayment'] = PaymentMethod::ALL; .... array_push(Allpay::instance()->Send['Items'], array('Name' => "<產品C>", 'Price' => (int)"<單價>", 'Currency' => "<幣別>", 'Quantity' => (int) "<數量>", 'URL' => "<產品說明位址>"));, (*6)
Allpay Service Provider for Laravel 4.
MIT
laravel allpay