83 lines
5.2 KiB
PHP
83 lines
5.2 KiB
PHP
<?php
|
||
|
||
/**
|
||
* @desc 支付配置文件
|
||
* @author Tinywan(ShaoBo Wan)
|
||
* @date 2022/03/11 20:15
|
||
*/
|
||
return [
|
||
'alipay' => [
|
||
'default' => [
|
||
// 必填-支付宝分配的 app_id
|
||
'app_id' => '2021004146699603',
|
||
// 必填-应用私钥 字符串或路径
|
||
'app_secret_cert' => 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCktKWIoqSZ8BoSpALMsvTEsEQ1kF++wBeneams0Q17LvqGDBgiGuuICU0tnhBrjEkJFIw+5ApiHdkwbjFRqDqXyNj7B9fMBWp+QeHf6KvmRsPOHZegyvmQlqvMYf6hF4OwVKDrtVi6I1hVdrwf35h8KEGh4QM0WyXno2bJ7OVQDL49enrG7dXZQkwnwiluuxgjKphC2WYHCERGiYbrRKWXtQmzivjw7YTtfSXvypp8N3pSWXkWeLqpGGK3GG3pcUu4U+y4RFknnzSpiv20EJ6gw3pjUDkzexJoGh9byFOMoRVTJpIV8iTshdozd69ny5FjmIoXIouGCjdwp6M+XCXVAgMBAAECggEAJ1Dn4sHQQN7Lmn+EG5DsVLcu0QpxkHsSKmwkUJhme20vaCgi6qE6b/KodacxjDqkhIJfJ/QPdnRhj+n949wggHL1OJcasBzq2tCnNme4APQLcXwm4b8R663LvLH3skSGruTEtP9I+sXNJDl/lqwtHhYN9LJdrXXEipK6yqC97Gl7JznT/VXctOebXqFtdxm1M1zCoxwWwU20rYbNV74VIwIQhhNYaParU7ycVRgxw7wFhImGfy/y4SgHVTOS2Lhj12oDhHVSkhQjyEL4IKlI7Np/5jbZax+NWZjiTUJcDYEK6v6hpw0Skjf7fCBhbiHWTFm0LsBonLhX0b7hKaRYAQKBgQDu6fpxBmqpFy1Vzr/VWIWR9pXNtPqD3aVGWOUm3BuTyTtM8vEr6hcFIzjDae2JzSHTwAlNXQlifx43W630Iq2/AfYLsK1jtfqPRnuB1B4Bd+dixslG5a+mvpYTX0h9nZittWUh07tB8peoRidhnre0kKBZgdsO0XaaEpGkxoaEgQKBgQCwfBEq87wF5a9elUgJuDoqpglFWj8S52YqtolLdtpPpR7CtOLgAQb/ZAZ2Q0knAXcHgNoabqTJ1/psVc33+Lg3bQZyXiy9KUT72SoNhXa+kqWOAqjb4rEqL9x65l1A04Xxd4D0D3Drf0nv4TTaJfjjM/nRRWmqcOEKcvzgakKnVQKBgQCvI9EXCBgqqrXuQGj6kjEgpn581R4MivA82K/rw9Fnjk4tg67ufWWwu3hCMKYUrc8NdqqbDwfxL7TL6iZkYQOzkVF4kmUZQm9Slt21d/UjKG30SDuHAJu6hd5ohyISC/S/6skfeiK9HoS0s/DsrDiJYrhZxUr72uux2Mjx3SMBgQKBgQCX88qoS8Eo5rDO5ANpcviJ/flfgCtscFYUEqQ1mHixOH86r5njup62x/2UV6yla+p7SGMBfSBfNZlFK7+ycLDT8Agr8o/csqrVmQ5PJAmwXf0zP3D6Gb3mj9zq6GuERFtAI1+hQ6Y67ZbQdfwWk7kujnLaz0QCXzwzzfuSkYsgHQKBgFadCh1lJYQcpCjEDD50QAdbfzhVJRSYVEQhj2ekQ+w7hEndXiwptucPt8vs39qRfyXwoez2dWbK9ZUmU3/DTZBtL/1OmpDV2yPYi+xpipgzETB44mQnpcAcvaxU59j0oZQxXsWXHKNfOBzO2KgrReHnY7oUurPPq1A76yEcGmtn',
|
||
// 必填-应用公钥证书 路径
|
||
'app_public_cert_path' => runtime_path() . '/cert/ali/appCertPublicKey_2021004146699603.crt',
|
||
// 必填-支付宝公钥证书 路径
|
||
'alipay_public_cert_path' => runtime_path() . '/cert/ali/alipayCertPublicKey_RSA2.crt',
|
||
// 必填-支付宝根证书 路径
|
||
'alipay_root_cert_path' => runtime_path() . '/cert/ali/alipayRootCert.crt',
|
||
// 选填-同步回调地址
|
||
'return_url' => 'https://erp.lihaink.cn/api/pay/alipay_return',
|
||
// 选填-异步回调地址
|
||
'notify_url' => 'https://erp.lihaink.cn/api/pay/alipay_notify',
|
||
// 选填-服务商模式下的服务商 id,当 mode 为 Pay::MODE_SERVICE 时使用该参数
|
||
'service_provider_id' => '',
|
||
// 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SANDBOX, MODE_SERVICE
|
||
'mode' => \Yansongda\Pay\Pay::MODE_NORMAL,
|
||
]
|
||
],
|
||
'wechat' => [
|
||
'default' => [
|
||
// 必填-商户号,服务商模式下为服务商商户号
|
||
'mch_id' => '1654274867',
|
||
// 选填-v2商户私钥
|
||
'mch_secret_key_v2' => 'FC685E79840793CE86AE621CE9EDFCDA',
|
||
// 必填-商户秘钥
|
||
'mch_secret_key' => '7E00D167C9793006C93F4FB4CF65BCC2',
|
||
// 必填-商户私钥 字符串或路径
|
||
'mch_secret_cert' => runtime_path() . '/cert/c208f16ad08e6d2516e0b73e6d0ab8da.pem',
|
||
// 必填-商户公钥证书路径
|
||
'mch_public_cert_path' => runtime_path() . '/cert/82fdc3426e3aeb9e5df91a9547ac5ef3.pem',
|
||
// 必填
|
||
'notify_url' => 'https://erp.lihaink.cn/api/pay/notifyMnp',
|
||
// 选填-公众号 的 app_id
|
||
'mp_app_id' => 'wxe2428e8fe6767e45',
|
||
// 选填-小程序 的 app_id
|
||
'mini_app_id' => 'wxdee751952c8c2027',
|
||
// 选填-app 的 app_id
|
||
'app_id' => '',
|
||
// 选填-合单 app_id
|
||
'combine_app_id' => '',
|
||
// 选填-合单商户号
|
||
'combine_mch_id' => '',
|
||
// 选填-服务商模式下,子公众号 的 app_id
|
||
'sub_mp_app_id' => '',
|
||
// 选填-服务商模式下,子 app 的 app_id
|
||
'sub_app_id' => '',
|
||
// 选填-服务商模式下,子小程序 的 app_id
|
||
'sub_mini_app_id' => '',
|
||
// 选填-服务商模式下,子商户id
|
||
'sub_mch_id' => '',
|
||
// 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数
|
||
'wechat_public_cert_path' => [],
|
||
// 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
|
||
'mode' => \Yansongda\Pay\Pay::MODE_NORMAL,
|
||
]
|
||
],
|
||
'logger' => [
|
||
'enable' => false,
|
||
'file' => runtime_path() . '/logs/alipay.log',
|
||
'level' => 'debug', // 建议生产环境等级调整为 info,开发环境为 debug
|
||
'type' => 'single', // optional, 可选 daily.
|
||
'max_file' => 30, // optional, 当 type 为 daily 时有效,默认 30 天
|
||
],
|
||
'http' => [ // optional
|
||
'timeout' => 5.0,
|
||
'connect_timeout' => 5.0,
|
||
// 更多配置项请参考 [Guzzle](https://guzzle-cn.readthedocs.io/zh_CN/latest/request-options.html)
|
||
],
|
||
'_force' => true,
|
||
];
|