package httpapi import "net/http" // testPage serves a self-contained, same-origin manual test page at GET /_test. // Same origin as the API → no CORS, and pangolin-pay sets no restrictive CSP, // so its inline JS/CSS run freely. This is a throwaway harness for the // 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. 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") _, _ = w.Write([]byte(testPageHTML)) } const testPageHTML = `
USDT-TRC20 · 单地址 + 唯一金额 · 手动测试页(非生产收银台)
地址模型:所有订单收到同一地址,靠唯一金额(基准价 + 微尾数 ≤0.01U)区分。
本页仅调 POST /order 与 GET /order/{id},无私钥、无密钥。