Files
zyt/server/config/pay.php
T
2026-03-19 12:19:00 +08:00

40 lines
1.9 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 [
// 支付宝配置
'alipay' => [
'app_id' => env('ALIPAY_APP_ID', ''),
'merchant_private_key' => env('ALIPAY_MERCHANT_PRIVATE_KEY', ''),
'alipay_public_key' => env('ALIPAY_PUBLIC_KEY', ''),
'notify_url' => env('ALIPAY_NOTIFY_URL', ''),
'return_url' => env('ALIPAY_RETURN_URL', ''),
'gateway_url' => env('ALIPAY_GATEWAY_URL', 'https://openapi.alipay.com/gateway.do'),
],
// 微信支付配置
'wechat' => [
'app_id' => env('WECHAT_APP_ID', ''),
'mch_id' => env('WECHAT_MCH_ID', ''),
'api_key' => env('WECHAT_API_KEY', ''),
'notify_url' => env('WECHAT_NOTIFY_URL', ''),
'gateway_url' => env('WECHAT_GATEWAY_URL', 'https://api.mch.weixin.qq.com'),
],
// 企业微信对外收款配置(参考 https://developer.work.weixin.qq.com/document/path/93665
// 获取对外收款记录需使用「对外收款」应用的 secret,在管理后台-应用管理-对外收款-API 中查看
'wechat_work' => [
'corp_id' => env('WECHAT_WORK_CORP_ID', '') ?: (string)env('work_wechat.corp_id', ''),
// 对外收款 get_bill_list 必须使用「对外收款」应用的 Secret,在 管理后台-应用管理-对外收款-API 中查看
'external_pay_secret' => env('WECHAT_WORK_EXTERNAL_PAY_SECRET', '') ?: (string)env('work_wechat.wechat_work_external_pay_secret', '') ?: (string)env('work_wechat.secret', ''),
'notify_url' => env('WECHAT_WORK_NOTIFY_URL', ''),
'mch_id' => env('WECHAT_MCH_ID', ''),
'api_key' => env('WECHAT_API_KEY', ''),
// 直接在企业微信发起收款时,回调自动创建订单的默认值
'default_creator_id' => (int)env('WECHAT_WORK_DEFAULT_CREATOR_ID', 1),
'default_order_type' => (int)env('WECHAT_WORK_DEFAULT_ORDER_TYPE', 6), // 6=其他费用
],
];