76 lines
3.5 KiB
PHP
76 lines
3.5 KiB
PHP
<?php
|
||
// +----------------------------------------------------------------------
|
||
// | YwxApp [ WE CAN DO IT JUST THINK ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2026-2036 http://ywxapp.cn All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Author: ywxapp<admin@ywxapp.cn>
|
||
// +----------------------------------------------------------------------
|
||
// 支付插件配置项(后台配置页数据源;实际值存于统一配置表 wxapp_addon_config)
|
||
// 默认值仅为迁移占位。
|
||
return [
|
||
// ============ 免签支付(个人收款码)配置 ============
|
||
[
|
||
'name' => 'personal_enable',
|
||
'title' => '开启免签支付',
|
||
'type' => 'radio',
|
||
'options' => ['1' => '开启', '0' => '关闭'],
|
||
'value' => '1',
|
||
'tip' => '免签支付无需商户资质,使用你的个人收款码,用户扫码转账后由你手动确认到账。',
|
||
],
|
||
[
|
||
'name' => 'personal_wechat_qrcode',
|
||
'title' => '微信个人收款码',
|
||
'type' => 'string',
|
||
'value' => '',
|
||
'tip' => '填写你微信个人收款码的公开访问 URL,例如 /addon/Mqpay/qrcode/wechat.png',
|
||
],
|
||
[
|
||
'name' => 'personal_alipay_qrcode',
|
||
'title' => '支付宝个人收款码',
|
||
'type' => 'string',
|
||
'value' => '',
|
||
'tip' => '填写你支付宝个人收款码的公开访问 URL,例如 /addon/Mqpay/qrcode/alipay.png',
|
||
],
|
||
[
|
||
'name' => 'personal_confirm_mode',
|
||
'title' => '到账确认方式',
|
||
'type' => 'radio',
|
||
'options' => ['manual' => '手动确认(推荐体验用)', 'auto' => '自动监听(安卓通知监听 App 回调)'],
|
||
'value' => 'manual',
|
||
'tip' => '手动确认:用户在 /Mqpay/admin 页面确认到账;自动监听:安卓 NotificationListener 监听到账通知后调用 notifyApp 接口自动确认。',
|
||
],
|
||
[
|
||
'name' => 'listen_enable',
|
||
'title' => '开启到账自动监听',
|
||
'type' => 'radio',
|
||
'options' => ['1' => '开启', '0' => '关闭'],
|
||
'value' => '0',
|
||
'tip' => '开启后,安卓监听 App 可凭 listen_key 调用 /Mqpay/pay/notify-app 接口自动确认订单(需确认方式设为自动监听)。',
|
||
],
|
||
[
|
||
'name' => 'listen_key',
|
||
'title' => '监听回调密钥',
|
||
'type' => 'string',
|
||
'value' => '',
|
||
'tip' => '自定义一段随机字符串,安卓监听 App 调用 notifyApp 接口时需携带,用于校验来源。建议 16 位以上随机串。',
|
||
],
|
||
[
|
||
'name' => 'listen_amount_jitter',
|
||
'title' => '金额零头防撞单',
|
||
'type' => 'radio',
|
||
'options' => ['1' => '开启', '0' => '关闭'],
|
||
'value' => '1',
|
||
'tip' => '开启后下单金额附加随机零头(如 99.37 元),安卓监听到账金额可精确匹配订单,避免多人同额撞单。',
|
||
],
|
||
// ============ 真实商户支付配置(可选) ============
|
||
[
|
||
'name' => 'merchant_enable',
|
||
'title' => '开启真实商户支付',
|
||
'type' => 'radio',
|
||
'options' => ['1' => '开启', '0' => '关闭'],
|
||
'value' => '0',
|
||
'tip' => '需安装 yansongda/pay 并配置商户密钥,详见插件 README。',
|
||
],
|
||
];
|