2017 © Pedro Peláez
 

library payjs

image

zqhong/payjs

  • Sunday, June 17, 2018
  • by zqhong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

payjs

安装

$ composer require -vvv musnow/payjs

使用

<?php
require __DIR__ . '/vendor/autoload.php';

$config = [
    'merchantId' => '',                      //商户号
    'merchantKey' => '',                     //密钥
    'notifyUrl' => 'https://www.baidu.com/', //notify地址 接收微信支付异步通知的回调地址。必须为可直接访问的URL,不能带参数、session验证、csrf验证。留空则不通知 需要保留最后的斜杠
];
$payjs = new \Musnow\Payjs\Pay($config);

$data = [
    'total_fee' => 1,          //金额,单位 分
    'body' => '测试订单',       //订单标题
    'attach' => '测试订单',    //用户自定义数据,在notify时会原样返回
    'out_trade_no' => time(),   //商户订单号,需要保证唯一
];

$ret = $payjs->qrPay($data);  //扫码支付
print_r($ret);                //返回数据

更多示例代码,参考 examples 目录下示例代码。, (*1)

License

payjs is under the MIT license., (*2)

The Versions

17/06 2018

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong
by Avatar musnow

17/06 2018

v3.0.2

3.0.2.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong
by Avatar musnow

17/06 2018

v3.0.1

3.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong
by Avatar musnow

17/06 2018

v3.0.0

3.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong
by Avatar musnow

02/06 2018

v2.0.4

2.0.4.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

01/06 2018

v2.0.3

2.0.3.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

01/06 2018

v2.0.2

2.0.2.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

18/04 2018

v2.0.1

2.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

18/04 2018

v2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

02/04 2018

dev-v1-Archiving

dev-v1-Archiving

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

02/04 2018

v1.0.5

1.0.5.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

26/01 2018

v1.0.4

1.0.4.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

14/01 2018

v1.0.3

1.0.3.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

29/12 2017

v1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow

25/12 2017

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

  • php >=5.4

 

by Avatar musnow