Skip to main content
Help

FAQ

Signing​

I keep getting 签名校验失败 (signature mismatch)​

Check in this order:

  1. Case: the signature must be uppercase hex.
  2. Secret: the secret is the HMAC key and is appended as &key=<secret>. Both are required. Check for stray spaces or newlines.
  3. Which secret: requests use appSecret; callbacks are verified with notifySecret.
  4. Empty values: null and empty strings are skipped; 0 and false are included.
  5. Number format: send amounts as strings so 9.90 does not become 9.9.
  6. URL encoding: sign the raw values, not URL-encoded ones.
  7. Extra parameters: the order and invoice query endpoints verify a fixed set of parameters. Do not add others.
  8. Nested objects: must be compact JSON with sorted keys. It is simpler to send nested data as a string, e.g. extra.
  9. 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​

ItemDetails
IP allowlist and rate limitApply to order creation only
Refunds and closing ordersNo API yet. Unpaid QR codes expire after about 3 minutes; contact the platform for refunds
SMS abuse protectionOnly a 60-second interval per number; add your own daily caps, IP limits and wrong-code limits
Code verificationDone through sign-in; consumes the code and may create a user, see SMS
EmailOne recipient; HTML requires a template
Callback retriesUp to 10 attempts; reconcile with the query endpoints afterwards