2017 © Pedro Peláez
 

library laravel_4_allpay

Allpay Service Provider for Laravel 4.

image

lionweng/laravel_4_allpay

Allpay Service Provider for Laravel 4.

  • Wednesday, May 27, 2015
  • by lionweng
  • Repository
  • 0 Watchers
  • 0 Stars
  • 38 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Allpay SDK wrapper for Laravel 4

Setup

composer.json:

"require": { "lionweng/laravel_4_allpay": "dev-master", (*1)

}

composer:

$ composer update

Package

app/config/app.php -> providers:

'providers' => array( // ..., (*2)

'Lionweng\Allpay\AllpayServiceProvider',

)

app/config/app.php -> aliases:

'aliases' => array( // ... 'Allpay' => 'Lionweng\Allpay\Facade\Allpay',, (*3)

)

Setting

config -> app/config/laravel_4_allpay.php:

<?php return array(, (*4)

'ServiceURL' => "https://payment.allpay.com.tw/Cashier/AioCheckOut",
'HashKey' => "hashkey",
'HashIV' => "hashiv",
'MerchantID' => "merchantid"

);, (*5)

# Samples

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::instance()->CheckOut();

The Versions

27/05 2015

dev-master

9999999-dev https://bitbucket.org/lionweng/laravel_4_allpay

Allpay Service Provider for Laravel 4.

  Sources   Download

MIT

laravel allpay