定制 lionweng/laravel_4_allpay 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lionweng/laravel_4_allpay

Composer 安装命令:

composer require lionweng/laravel_4_allpay

包简介

Allpay Service Provider for Laravel 4.

README 文档

README

Setup

composer.json:

"require": { "lionweng/laravel_4_allpay": "dev-master"

}

composer:

$ composer update

Package

app/config/app.php -> providers:

'providers' => array(

// ...

'Lionweng\Allpay\AllpayServiceProvider',

)

app/config/app.php -> aliases:

'aliases' => array(

// ...
'Allpay' => 'Lionweng\Allpay\Facade\Allpay',

)

Setting

config -> app/config/laravel_4_allpay.php:

<?php return array(

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

);

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' => "<<產品說明位址>>"));

Allpay::instance()->CheckOut();

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-26