req-tencent / weixin-pay
There is no license information available for the latest version (0.2.1) of this package.
微信支付 APIs
0.2.1
2023-07-29 08:06 UTC
Requires
- php: >=7.2
- guzzlehttp/guzzle: ^6.5 || ^7.0
Requires (Dev)
- phpunit/phpunit: ^8.5
README
下载平台证书参考
https://github.com/wechatpay-apiv3/wechatpay-php/blob/main/bin/README.md
配置参考
const M1 = [
'appid' => '公众号或小程序的APPID',
'mchid' => '商户ID',
'v3Key' => '证书KEY',
'sn' => '证书编号',
'notify_url' => '支付回调通知地址',
'private_key_path' => __DIR__ . '/证书私钥/apiclient_key.pem',
'wechatpay_certificate_path' => __DIR__ . '/平台证书.pem',
];