徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiuhaoshenghuo/config/wechat.php

83 lines
2.7 KiB

2 months ago
<?php
// +----------------------------------------------------------------------
// | 微信服务相关配置
// +----------------------------------------------------------------------
return [
//请求响应日志
'logger' => env('APP_DEBUG', false),
//公用
'comment' => [
'url' => 'site_url',
],
//小程序配置
'mini' => [
'appid' => 'routine_appId',
'secret' => 'routine_appsecret',
'token' => 'wechat_token',
'key' => 'wechat_encodingaeskey',
'notifyUrl' => '/api/pay/notify/routine',//必须携带斜杠开头
],
//公众号配置
'official' => [
'appid' => 'wechat_appid',
'secret' => 'wechat_appsecret',
'token' => 'wechat_token',
'key' => 'wechat_encodingaeskey',
'encode' => 'wechat_encode',
],
//开放平台APP
'app' => [
'appid' => 'wechat_app_appid',
'secret' => 'wechat_app_appsecret',
'token' => 'wechat_openapp_app_token',
'key' => 'wechat_openapp_app_aes_key',
'notifyUrl' => '/api/pay/notify/app',//必须携带斜杠开头
],
//开放平台网页应用
'web' => [
'appid' => 'wechat_open_app_id',
'secret' => 'wechat_open_app_secret',
'token' => 'wechat_open_app_token',
'key' => 'wechat_open_app_aes_key',
],
//企业微信
'work' => [
'corp_id' => 'wechat_work_corpid',
'token' => 'wechat_work_token',
'key' => 'wechat_work_aes_key',
],
//支付
'pay' => [
'mchid' => 'pay_weixin_mchid',//商户号
'routine_mchid' => 'pay_routine_mchid',//小程序商户号
'key' => 'pay_weixin_key',//支付key
'client_cert' => 'pay_weixin_client_cert',//证书
'client_key' => 'pay_weixin_client_key',//证书
'notifyUrl' => '/api/pay/notify/wechat',//支付回调,必须携带斜杠开头
'refundUrl' => '/api/pay/refund/wechat',//退款回到,必须携带斜杠开头
],
//v3支付新增配置,证书和商户号使用v2支付配置的证书
'v3_pay' => [
'key' => [
//默认使用value值,没有值使用eb_system_config配置中的key的值
'key' => 'v3_pay_weixin_key',
//配置值
'value' => '',
],
'serial_no' => [
//默认使用value值,没有值使用eb_system_config配置中的key的值
'key' => 'pay_weixin_serial_no',
//配置值
'value' => '',
],
'pay_type' => [
//默认使用value值,没有值使用eb_system_config配置中的key的值
'key' => 'pay_wechat_type',
//配置值
'value' => '',
],
],
];