| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
- return [
- 'wechat' => [
- 'wechat'=>[
- 'default' => [
- // 必填-商户号
- 'mch_id' => '',
- // 必填-v3商户秘钥
- 'mch_secret_key' => '',
- // 必填-商户私钥 字符串或路径
- 'mch_secret_cert' => base_path().'/resources/certs/wechat/apiclient_key.pem',
- // 必填-商户公钥证书路径
- 'mch_public_cert_path' => base_path().'/resources/certs/wechat/apiclient_cert.pem',
- // 选填-微信公钥证书路径,公钥方式验证签名需配置
- 'wechat_public_cert_path' => [
- //前面是证书***,登录商户平台【API安全】->【API证书】->【查看证书】,可查看商户API证书***
- 'PUB_KEY_ID_0116426419052026020300212051002807' => base_path().'/resources/certs/wechat/pub_key.pem',
- ],
- // 必填
- 'notify_url' => '',
- // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
- 'mode' => 0,
- ],
- ],
- 'logger' => [ // optional
- 'enable' => true,
- 'file' => base_path().'/storage/logs/wechat.log',
- 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
- 'type' => 'single', // optional, 可选 daily.
- 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
- ],
- 'http' => [ // optional
- 'timeout' => 5.0,
- 'connect_timeout' => 5.0,
- ],
- ],
- 'alipay'=> [
- 'alipay' => [
- 'default' => [
- // 必填-支付宝分配的 app_id
- 'app_id' => '',
- // 必填-应用私钥 字符串或路径
- 'app_secret_cert' => '',
- // 必填-应用公钥证书 路径
- 'app_public_cert_path' => base_path().'/resources/certs/alipay/appCertPublicKey.crt',
- // 必填-支付宝公钥证书 路径
- 'alipay_public_cert_path' => base_path().'/resources/certs/alipay/alipayCertPublicKey_RSA2.crt',
- // 必填-支付宝根证书 路径
- 'alipay_root_cert_path' => base_path().'/resources/certs/alipay/alipayRootCert.crt',
- // 直接回调地址
- 'return_url' => '',
- // 必填
- 'notify_url' => '',
- // 'notify_url' => 'https://yansongda.cn/alipay/notify',
- // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
- 'mode' => 0,
- ]
- ],
- 'logger' => [ // optional
- 'enable' => true,
- 'file' => base_path().'/storage/logs/alipay.log',
- 'level' => 'info', // 建议生产环境等级调整为 info,开发环境为 debug
- 'type' => 'single', // optional, 可选 daily.
- 'max_file' => 7, // optional, 当 type 为 daily 时有效,默认 30 天
- ],
- 'http' => [ // optional
- 'timeout' => 5.0,
- 'connect_timeout' => 5.0,
- ],
- ],
- ];
|