2017 © Pedro Peláez
 

library alipay

alipay h5 app web

image

mrk/alipay

alipay h5 app web

  • Thursday, December 14, 2017
  • by Alexcck
  • Repository
  • 0 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

alipay-h5

H5 调起 支付宝钱包支付

$config = array (
    //应用ID,您的APPID。
    'app_id' => "20xxxxxxxx69",

    //商户私钥,您的原始格式私钥,一行字符串
    'merchant_private_key' => "xxxxxx",

    //商户应用公钥,一行字符串
    'merchant_public_key' => "xxxxxxxx",

    //支付宝公钥,查看地址:https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    'alipay_public_key' => "xxxxxx",


    //编码格式只支持GBK。
    'charset' => "UTF-8",

    //支付宝网关
    'gatewayUrl' => "https://openapi.alipay.com/gateway.do",

    //签名方式
    'sign_type'=>"RSA2",

    'return_url' => "xx",

    'notify_url' => "xx",
);
require "./vendor/autoload.php";

use mrk\AliPayH5;

$client = new AliPayH5($config);

$data = [
    'title'=>"test",
    'description'=>"test 123",
    'out_trade_no' => '12345566',
    'total_amount' => 0.01
];
$client->pay($data);

回调

$arr = $_POST
$client = new AliPayH5($config);
$result = $client->check($arr);
if($result){
//业务

}else{
//业务
}

The Versions

14/12 2017

dev-develop

dev-develop

alipay h5 app web

  Sources   Download

MIT

The Requires

  • php >= 5.5

 

by MrK

alipay webpay apppay h5pay

14/12 2017

dev-master

9999999-dev

alipay h5 app web

  Sources   Download

MIT

The Requires

  • php >= 5.5

 

by MrK

alipay webpay apppay h5pay

24/11 2017

1.1.1

1.1.1.0

alipay h5 app web

  Sources   Download

MIT

The Requires

  • php >= 5.5

 

by MrK

alipay webpay apppay h5pay

23/11 2017

1.1.0

1.1.0.0

alipay h5 app web

  Sources   Download

MIT

The Requires

  • php >= 5.5

 

by MrK

alipay webpay apppay h5pay

10/11 2017

1.0.0

1.0.0.0

Alipay web SDK for PHP

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

sdk web alipay