You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.5 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?php
return [
'alipay' => [
// 支付宝分配的 APPID
'app_id' => env('ALI_APP_ID', ''),
// 支付宝异步通知地址
'notify_url' => '',
// 支付成功后同步通知地址
'return_url' => '',
// 阿里公共密钥,验证签名时使用
'ali_public_key' => env('ALI_PUBLIC_KEY', ''),
// 自己的私钥,签名时使用
'private_key' => env('ALI_PRIVATE_KEY', ''),
// 使用公钥证书模式,请配置下面两个参数,同时修改 ali_public_key 为以 .crt 结尾的支付宝公钥证书路径,如(./cert/alipayCertPublicKey_RSA2.crt
// 应用公钥证书路径
// 'app_cert_public_key' => './cert/appCertPublicKey.crt',
// 支付宝根证书路径
// 'alipay_root_cert' => './cert/alipayRootCert.crt',
// optional默认 warning日志路径为sys_get_temp_dir().'/logs/yansongda.pay.log'
'log' => [
'file' => storage_path('logs/alipay.log'),
// 'level' => 'debug'
// 'type' => 'single', // optional, 可选 daily.
// 'max_file' => 30,
],
// optional设置此参数将进入沙箱模式
// 'mode' => 'dev',
],
'wechat' => [
// 公众号 APPID
'app_id' => env('WECHAT_APP_ID', ''),
// 小程序 APPID
'miniapp_id' => env('WECHAT_MINIAPP_ID', ''),
// APP 引用的 appid
'appid' => env('WECHAT_APPID', ''),
// 微信支付分配的微信商户号
'mch_id' => env('WECHAT_MCH_ID', ''),
// 微信支付异步通知地址
'notify_url' => '',
// 微信支付签名秘钥
'key' => env('WECHAT_KEY', ''),
// 客户端证书路径退款、红包等需要用到。请填写绝对路径linux 请确保权限问题。pem 格式。
'cert_client' => '',
// 客户端秘钥路径退款、红包等需要用到。请填写绝对路径linux 请确保权限问题。pem 格式。
'cert_key' => '',
// optional默认 warning日志路径为sys_get_temp_dir().'/logs/yansongda.pay.log'
'log' => [
'file' => storage_path('logs/wechat.log'),
// 'level' => 'debug'
// 'type' => 'single', // optional, 可选 daily.
// 'max_file' => 30,
],
// optional
// 'dev' 时为沙箱模式
// 'hk' 时为东南亚节点
// 'mode' => 'dev',
],
];