req-tencent / weixin-pay
微信支付 APIs
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/req-tencent/weixin-pay
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',
];