72 lines
2.7 KiB
PHP
72 lines
2.7 KiB
PHP
<?php
|
||
|
||
return [
|
||
|
||
/*
|
||
|--------------------------------------------------------------------------
|
||
| Third Party Services
|
||
|--------------------------------------------------------------------------
|
||
|
|
||
| This file is for storing the credentials for third party services such
|
||
| as Mailgun, Postmark, AWS and more. This file provides the de facto
|
||
| location for this type of information, allowing extends to have
|
||
| a conventional file to locate the various service credentials.
|
||
|
|
||
*/
|
||
|
||
'postmark' => [
|
||
'token' => env('POSTMARK_TOKEN'),
|
||
],
|
||
|
||
'ses' => [
|
||
'key' => env('AWS_ACCESS_KEY_ID'),
|
||
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
||
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
||
'token' => env('AWS_SESSION_TOKEN'),
|
||
],
|
||
|
||
'resend' => [
|
||
'key' => env('RESEND_KEY'),
|
||
],
|
||
|
||
'slack' => [
|
||
'notifications' => [
|
||
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
|
||
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
|
||
],
|
||
],
|
||
|
||
'mailgun' => [
|
||
'domain' => env('MAILGUN_DOMAIN'),
|
||
'secret' => env('MAILGUN_SECRET'),
|
||
'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'),
|
||
'scheme' => 'https',
|
||
],
|
||
|
||
/*
|
||
* 微信小程序(登录 code2Session / 手机号授权),AppID/Secret 需业务方提供
|
||
*/
|
||
'wechat' => [
|
||
'mini' => [
|
||
'appid' => env('WECHAT_MINI_APPID', ''),
|
||
'secret' => env('WECHAT_MINI_SECRET', ''),
|
||
],
|
||
],
|
||
|
||
/*
|
||
* 旺铺支付网关(统一下单B-JSAPI / 交易查询 / 后台通知)
|
||
* 优先读取后台「系统设置 → 支付配置」(site_config pay.wangpu_*),为空时回退到这里的 env 配置
|
||
*/
|
||
'wangpu' => [
|
||
'base_url' => env('WANGPU_BASE_URL', ''), // 网关域名,如 https://pay.example.com
|
||
'organiz_no' => env('WANGPU_ORGANIZ_NO', ''), // 合作机构渠道号
|
||
'mer_no' => env('WANGPU_MER_NO', ''), // 旺铺内部商户号
|
||
'mer_code' => env('WANGPU_MER_CODE', ''), // 商户号(进件入网后返回)
|
||
'term_code' => env('WANGPU_TERM_CODE', ''), // 终端号(进件入网后返回)
|
||
'public_key' => env('WANGPU_PUBLIC_KEY', ''), // 旺铺平台公钥(base64 单行,加密请求报文 AES 密钥)
|
||
'private_key' => env('WANGPU_PRIVATE_KEY', ''), // 商户 RSA 私钥(base64 单行,解密网关应答/通知报文)
|
||
'sub_appid' => env('WANGPU_SUB_APPID', ''), // 下单微信子 appid(默认取小程序 appid)
|
||
'payway_code' => env('WANGPU_PAYWAY_CODE', 'WECHAT_MINI'), // 支付方式代码(主扫必填)
|
||
],
|
||
];
|