Help
FAQ
Signing
I keep getting 签名校验失败 (signature mismatch)
Check in this order:
- Case: the signature must be uppercase hex.
- Secret: the secret is the HMAC key and is appended as
&key=<secret>. Both are required. Check for stray spaces or newlines. - Which secret: requests use
appSecret; callbacks are verified withnotifySecret. - Empty values:
nulland empty strings are skipped;0andfalseare included. - Number format: send amounts as strings so
9.90does not become9.9. - URL encoding: sign the raw values, not URL-encoded ones.
- Extra parameters: the order and invoice query endpoints verify a fixed set of parameters. Do not add others.
- Nested objects: must be compact JSON with sorted keys. It is simpler to send nested data as a string, e.g.
extra. - Check your implementation with the test vector, then call the readiness check.
请求已过期 (request expired)
timestamp must be in seconds, not milliseconds. Make sure your server clock is synced with NTP; the allowed skew is ±300 seconds.
检测到重复请求(nonce重放) (nonce replay)
Generate a new nonce for every request, including retries, and re-sign.
Callback verification fails
Make sure you use notifySecret and keep numbers as their original text when parsing JSON. See Payment callback.
Other
来源IP不在白名单内 (IP not allowed)
The allowlist accepts several IPs (comma-separated) and prefixes such as 192.168.1., but not CIDR. The platform uses the first IP in X-Forwarded-For; if your server reaches the internet through a proxy, allowlist the proxy's egress IP. An empty allowlist means no restriction.
没有找到相关APP信息 (app not found)
The X-App-Code header is missing or wrong.
code=401
The session token has expired or does not match X-App-Code. Sign in again.
Limits
| Item | Details |
|---|---|
| IP allowlist and rate limit | Apply to order creation only |
| Refunds and closing orders | No API yet. Unpaid QR codes expire after about 3 minutes; contact the platform for refunds |
| SMS abuse protection | Only a 60-second interval per number; add your own daily caps, IP limits and wrong-code limits |
| Code verification | Done through sign-in; consumes the code and may create a user, see SMS |
| One recipient; HTML requires a template | |
| Callback retries | Up to 10 attempts; reconcile with the query endpoints afterwards |