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 = ` + pangolin-pay · 收款测试
-

pangolin-pay · 收款测试

+

pangolin-pay · 收款测试

USDT-TRC20 · 单地址 + 唯一金额 · 手动测试页(非生产收银台)

@@ -91,19 +119,20 @@ const testPageHTML = ` 状态
-
-
请支付精确金额(多付少付都不匹配)
+ +
+
请支付精确金额(多付少付都不匹配)
-
-
- 收款地址 - - - - + + +
+
收款地址
+
-
+ + +
TxID
@@ -111,18 +140,20 @@ const testPageHTML = ` 过期倒计时
+
发往此地址、且金额正好等于上面数字的 USDT-TRC20 转账,会在 watcher 下一轮轮询后自动标记 paid。金额不符 → 进 orphan 需人工对账。
- ⚠️ 需 TRONGRID_API_KEY 已配置,否则 watcher 被限流可能侦测很慢。 + ⚠️ 需 TRONGRID_API_KEY 已配置,否则 watcher 被限流、侦测很慢。

- 地址模型:所有订单收到同一地址,靠唯一金额(基准价 + 微尾数 ≤0.01U)区分。 - 本页仅调 POST /orderGET /order/{id},无私钥、无密钥。 + 测什么:收款订单闭环 —— POST /order 建单拿地址+唯一金额、GET /order/{id} + 轮询到 paid。地址模型:所有订单收到同一地址,靠唯一金额(基准价 + 微尾数 + ≤0.01U)区分。本页无私钥、无密钥。