diff --git a/pay/internal/httpapi/testpage.go b/pay/internal/httpapi/testpage.go index 562cb54..ebf4dbc 100644 --- a/pay/internal/httpapi/testpage.go +++ b/pay/internal/httpapi/testpage.go @@ -8,6 +8,11 @@ import "net/http" // money-critical Phase E loop (create order → pay exact amount → watch paid), // NOT the production checkout (that lives on the storefront). It only creates // orders and polls status — no secrets, no keys. +// +// Styling mirrors the marketing site's warm sand/clay palette (design tokens in +// design/prototype/tokens.css, light theme default, brand = clay-500 #B96A3D). +// Values are inlined here because pangolin-pay is a separate origin and cannot +// @import the site's stylesheet; keep them in sync if the brand palette changes. func (h *Handler) testPage(w http.ResponseWriter, _ *http.Request) { w.Header().Set("Content-Type", "text/html; charset=utf-8") w.Header().Set("Cache-Control", "no-store") @@ -20,55 +25,78 @@ const testPageHTML = ` +
USDT-TRC20 · 单地址 + 唯一金额 · 手动测试页(非生产收银台)
paid。金额不符 → 进 orphan 需人工对账。TRONGRID_API_KEY 已配置,否则 watcher 被限流可能侦测很慢。
+ ⚠️ 需 TRONGRID_API_KEY 已配置,否则 watcher 被限流、侦测很慢。
- 地址模型:所有订单收到同一地址,靠唯一金额(基准价 + 微尾数 ≤0.01U)区分。
- 本页仅调 POST /order 与 GET /order/{id},无私钥、无密钥。
+ 测什么:收款订单闭环 —— POST /order 建单拿地址+唯一金额、GET /order/{id}
+ 轮询到 paid。地址模型:所有订单收到同一地址,靠唯一金额(基准价 + 微尾数
+ ≤0.01U)区分。本页无私钥、无密钥。