nomadro/.cursor/rules/payments-i18n.mdc
eric 3e5b7c2098 Monorepo super-optimize: src layout, workspace scripts, docs.
Collapse portal under src/, unify pnpm workspace/scripts, thin VIP topic re-exports, drop orphan vip scaffolds and one-shot scripts, ignore xhs/release, document root commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-01 00:34:04 +08:00

23 lines
617 B
Plaintext
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.

---
description: 支付网关与多语言约定
alwaysApply: true
---
# 支付与 i18n
## 支付分流
| 场景 | 网关 |
|------|------|
| 海外 | Creem / NOWPayments |
| 国内 PC/H5 浏览器 | zpay |
| 国内微信内 H5 | xpay / xorpay(与现网 VIP 一致) |
| 微信小程序虚拟支付 | OfferID + AppKey(见 wechat 规则) |
统一经 FastAPI(`apps/api`)写 PocketBase;前端勿直连商户密钥。
## 多语言
- 默认中文 / 英语;扩展日语、越南语、泰语等小语种
- 门户已有 `lib/i18n` + `is-china-user`;垂直应用逐步对齐,勿再造冲突 locale 键