Files
admin/config/autoload/extension-pay.global.php
2025-09-13 01:08:51 +08:00

39 lines
1.7 KiB
PHP
Raw 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
return $config = [
// 'Yansongda' => [
// // 必填-商户号,服务商模式下为服务商商户号
// 'mch_id' => '',
// // 必填-商户秘钥
// 'mch_secret_key' => '',
// // 必填-商户私钥 字符串或路径文件名apiclient_key.pem 的文件
// 'mch_secret_cert' => '',
// // 必填-商户公钥证书路径文件名apiclient_cert.pem的文件
// 'mch_public_cert_path' => '',
// // 必填
// 'notify_url' => '', // 回调地址
// // 选填-小程序 的 app_id
// 'mini_app_id' => '',
// // 选填-微信公钥证书路径, optional强烈建议 php-fpm 模式下配置此参数
// // 这个参数需要去下载证书,具体下载方法在下面贴出来
// 'wechat_public_cert_path' => [],
// // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE
// 'mode' => Pay::MODE_NORMAL,
// ],
'Easywechat' => [
// 必要配置
'app_id' => 'xxxx',
'mch_id' => 'your-mch-id',
'key' => 'key-for-signature', // API v2 密钥 (注意: 是v2密钥 是v2密钥 是v2密钥)
// 如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书)
'cert_path' => 'path/to/your/cert.pem', // XXX: 绝对路径!!!!
'key_path' => 'path/to/your/key', // XXX: 绝对路径!!!!
'notify_url' => '默认的订单回调地址', // 你也可以在下单时单独设置来想覆盖它
'sandbox' => true, // 设置为 false 或注释则关闭沙箱模式
],
];