Download the PHP package miszhou/wxpay without Composer
On this page you can find all versions of the php package miszhou/wxpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download miszhou/wxpay
More information about miszhou/wxpay
Files in miszhou/wxpay
Download miszhou/wxpay
More information about miszhou/wxpay
Files in miszhou/wxpay
Please rate this library. Is it a good library?
Informations about the package wxpay
# wxpay 公众号支付及小程序支付封装
- 安装
composer require miszhou/wxpay
- 注册provider 在app.php里加入:
$app->register(WxPay\WxPayServiceProvider::class);
- 静态资源文件生成
php artisan vendor:publish --provider="WxPay\WxPayServiceProvider"
在config文件夹中将会生成wxpayConfig.php文件
在demo文件夹中将会生成demo.php文件以及成功回调实现类
lumen需要在app.php里加入:$app->configure('wxpayConfig');
确保文件能被调用到 - 使用:
统一下单
具体使用见Demo:https://github.com/miszhou/wxpay/blob/master/demo/Demo.php
可能错误提示
- curl出错,错误码:60
本地取消https证书校验,正式环境记得回退改动,正式环境应为严格模式。
miszhou/wxpay/lib/WxPay.Api.php 562行
变更为:
- time_expire时间过短,刷卡至少1分钟,其他5分钟
由于本地时区错误导致,不改变时区的情况下,可以将失效时间适当延长,一般延长8小时即可解决问题。
$order->SetTime_expire('下单时间+600+8*3600');
All versions of wxpay with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package miszhou/wxpay contains the following files
Loading the files please wait ....