nomadro/.cursor/rules/payments-i18n.mdc
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

25 lines
840 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;前端勿直连商户密钥。
## 多语言与受众
- **`.com`**:国际(英语为主)默认;中文用户特殊对待(见 `audience-cn-intl.mdc`)
- UI 语言:中文 / 英语;扩展日语、越南语、泰语等小语种
- 支付分流跟 **`detectAudience().isChina`**(含微信内置),**不要**跟 UI locale
- 门户:`lib/i18n` + `lib/audience` + `is-china-user`;垂直应用对齐,勿再造冲突 locale 键