Files
SoonDesign/docs/PAYMENT.md
T
24kycj 152228d41f 前端配置迁至 config/local.js,完善支付、模板库与部署脚本
- 页面直接引用 local.js 设置 SOON_DEPLOY_CONFIG,移除 deploy-config
- Docker sync-config 生成 local.js;更新 README 与 agent-core 说明
- 模板库自动扫描 .soon;新增后端部署/种子/排查脚本
- 完善支付配置、订阅弹窗与后台支付管理页

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 20:48:51 +08:00

36 lines
1.3 KiB
Markdown
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.
# 支付联调
## Admin 支付配置(推荐)
管理后台 **支付配置** 页可一次性维护:
| 类别 | 项 |
|------|-----|
| 站点 | `site.base_url`HTTPS 外网)、`site.front_base_url` |
| 前端展示 | `payment.display_channels`(默认 `alipay`;可 `alipay,wechat` |
| 支付宝 | `app_id`、沙箱开关、`private_key``public_key` |
| 微信 | `app_id``mch_id``mch_serial_no`、沙箱标记、`mch_private_key``api_v3_key``platform_cert` |
保存参数写入 `settings` 表并热加载;密钥上传至 `backend-web/storage/payment/*.pem`。页顶就绪状态可查看缺项。
## 密钥文件(亦可直接放入 `storage/payment/`
| 文件 | 用途 |
|------|------|
| alipay_private_key.pem | 支付宝商户私钥 |
| alipay_public_key.pem | 支付宝公钥 |
| wechat_mch_private_key.pem | 微信商户私钥 |
| wechat_api_v3_key.pem | APIv3 密钥(32 字节) |
| wechat_platform_cert.pem | 微信平台证书 |
## local.php 默认值
`local.php` / `local.php.example` 可预填上述项;Admin 中保存的值会覆盖同键配置。
## notify 路径
- `{site.base_url}/api/v1/pay/alipay/notify`
- `{site.base_url}/api/v1/pay/wechat/notify`
本地开发需 ngrok 等穿透;重复 notify 应幂等返回 success。