2025-02-26 10:13:24 +08:00

83 lines
5.2 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* @desc 支付配置文件
* @author Tinywan(ShaoBo Wan)
* @date 2022/03/11 20:15
*/
return [
'alipay' => [
'default' => [
// 必填-支付宝分配的 app_id
'app_id' => '2021004148687460',
// 必填-应用私钥 字符串或路径
'app_secret_cert' => 'MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCcbQPAhlF54v5H/uopq7w5d/ANwxU4ylK2RZ11BrzkHzBiTI0MnqGld1hE9fjTmjN3ve5Xop5AYnp2kUg30KrxFnT3PrEkb7cUs3E3ZpU+jJClbOZbtetWqfVfNhzYaWEzk2l9OWgEJQpV/vMXro7gPUGlSq1jGxdZfvqkw56pUS2YhTVgg2JHQIfEsMIRKFYt/qkJWYBCSs1ZLS1MMlrpACMRNCtT1AyGSE7bZZhBEqGi+9SMHOaQ5kEXWY7SNjkdmq4F5bDgCmX269DYFAs7445fi3Q0DymZ7s/Q22WQCwkgynjuCdlWNR9gOuD/4pernv+7NuDCZkfVjTn52VhfAgMBAAECggEAJKb2hhny5VhmtH/qZjEzPVP5D4BybIgbsVHGfzFA+ULFl4LQWfChd5/rMt1fnFU5UglS233jDrsEbtvDzDA8nZjhdz1dTGhQwaz6Dj0fIzTUf65wm3SY3Ame0NxhDeRDPk6AHTNiR/ZV4aiHVTk1iR1RUGWbEum6IuI54Hllp85ba5rdgp9cQpER9gsKCZ47Pq1T3NsSS3wUkcCEK9sxNiuQ0YpeO82w4qP5L4TXDbIJPlAkbWdzV+AkOfLmj4g5sLiLYUJ1gn4gV9pYymrbQyO8C1uyMUy3tlOmq/5SUaO+/jbDmplBY8xBDIYmHRZ870zz6uUpWRdkQzgO+XHtoQKBgQDbzgF/5MRrovQqSeclQNx0pTjKkLug2Q+ddkN3D1SO0J6thBT0Ga2MvvSZ3y7gIgNnJVCl6uvQergeaRHThcJ0wL6wqV1jlVqA7R5w2v70JnM0mEUDudpSd3cXtoJmAiprEtscSWNv3eRWssnM38+8zQu8IsaL5XCmm6Cb7no1HQKBgQC2LzxntHrDqb6E+KuaeACUkNUH2HWcFZHgGgrjcX2e/n6M30pMITY5nxopW3ixi0T+VgkHD2wn5wsO1z0e0T2IVNHrMX2WGEev263BiNulsAd4Zsmlzti7nC03aJ4+kj5/ewAz4GJ2DkKzDxScToraPU1CQ6pXsWcJaO5hmob2qwKBgHzkgumenRTj1ISq1VHPlvQYZTqEHnh4nWzFI/Rkm5FCbMb/A8DnTjtozScZL1NfQDu9ciO0ZiVhdXiiDuT3XdRlKHTM5ymMVY5oLSHG7ZLgvhkmZCCH28t74glxRIqdtGh+oE1kTcHkfLfegteMXEdU4tQVlmcrCWVBjHLNgFbpAoGBAKla+7IDqeNdVcfSSeNMDm4MvJuQcrPnsTU7wEdx5q74MLfPkgd3ECs8ZVtwtp+EsVwkqjuv8ICfXD4tg5m0NJkZEBKsbOwsIeeuNLWl/Vjma+tW0biasgqkwbuyOvg7hnGG68dNnPnVg9dj+2rZ8GWzerBQqnbeaMPskTyWI0QFAoGBANcpk2bK2yBzsa+RJ5rOjSzv/gJnYuHdx91RJ1yY9q4kL8sfwtBZr85iRWoxTwmv5TG/WpqsV2wfe5o1vPYVqzumarsQIP2YQxV2cKhkS8FEdJC1HAcAD1iuNqNqeV8lbdPfXb6y3aTxrNYui1IjZ1TsDh5ftD5K541WVZOo1JaF',
// 必填-应用公钥证书 路径
'app_public_cert_path' => config_path('pay') . '/ali/appCertPublicKey_2021004148687460.crt',
// 必填-支付宝公钥证书 路径
'alipay_public_cert_path' => config_path('pay') . '/ali/alipayCertPublicKey_RSA2.crt',
// 必填-支付宝根证书 路径
'alipay_root_cert_path' => config_path('pay') . '/ali/alipayRootCert.crt',
// 选填-同步回调地址
'return_url' => getenv('APP_URL') .'/api/pay/alipay_return',
// 选填-异步回调地址
'notify_url' => getenv('APP_URL') .'/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' => config_path('pay') . '/wechat/c208f16ad08e6d2516e0b73e6d0ab8da.pem',
// 必填-商户公钥证书路径
'mch_public_cert_path' => config_path('pay') . '/wechat/82fdc3426e3aeb9e5df91a9547ac5ef3.pem',
// 必填
'notify_url' => getenv('APP_URL') .'/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,
];