2017 © Pedro Peláez
 

library omnipay-shenzhoufu

shenzhoufu for laravel 5.*

image

hinet/omnipay-shenzhoufu

shenzhoufu for laravel 5.*

  • Friday, December 16, 2016
  • by hinet
  • Repository
  • 1 Watchers
  • 1 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

omnipay-alipay

神州付手机充值卡,游戏支付支付平台, (*1)

安装

composer require hinet/omnipay-shenzhoufu

使用

$gateway = Omnipay::create('Shenzhoufu');
$gateway->setPartnerId(config('payment.shenzhoufu.partner'));
$gateway->setApiKey(config('payment.shenzhoufu.apikey'));
$gateway->setNotifyUrl(config('payment.shenzhoufu.notifyUrl'));
$order = [
     'orderId'      => '201612141621487926',
     'amount'         => 1*100, //=0.01
];
$request  = $gateway->purchase($order);
$response = $request->send();
if($response->isSuccessful()){
     echo '<img src="'.$response->getQrcode().'">';
}else{
     $response->getMessage();
}

异步通知回调

$gateway = Omnipay::create('Shenzhoufu');
$options = [
        'request_params'=> $_REQUEST,
];
$response = $gateway->completePurchase($options)->send();
if ($response->isSuccessful() && $response->getTransactionReference()) {
    //支付成功后操作
    exit($response->getOrderID());
} else {
    //支付失败通知.
    exit('支付失败');
}

The Versions

16/12 2016

dev-master

9999999-dev

shenzhoufu for laravel 5.*

  Sources   Download

MIT

The Requires

 

16/12 2016

1.0.2

1.0.2.0

shenzhoufu for laravel 5.*

  Sources   Download

MIT

The Requires

 

14/12 2016

1.0.1

1.0.1.0

shenzhoufu for laravel 5.*

  Sources   Download

MIT

The Requires

 

14/12 2016

1.0.0

1.0.0.0

shenzhoufu for laravel 5.*

  Sources   Download

MIT

The Requires