Risexpay Demo
Payin 签名调试
这里展示 Payin 的 canonical string、timestamp 和 X-Signature。
请求成功
HTTP 200
Canonical String
timestamp=1716000000&amount=500&apikey=i5gzcd56tv988ea1&customer_mobile=9876543210&mid=RPAYZ3734017332&redirect_url=https://yourwebsite.com/payment-response
X-Signature
e9d15626e5c2493534bf3de335dde0a1c946331afd2475f5f25945fc5a85350c
原始响应 JSON
{
"ok": true,
"http_status": 200,
"json": {
"note": "用于调试 canonical string。如果 401 Invalid signature,请对照官方 helper 修改 buildCanonicalString()。",
"canonical_mode": "timestamp_prefix_sorted_query",
"timestamp": "1716000000",
"payload": {
"mid": "RPAYZ3734017332",
"apikey": "i5gzcd56tv988ea1",
"amount": 500,
"customer_mobile": "9876543210",
"redirect_url": "https://yourwebsite.com/payment-response"
},
"canonical_string": "timestamp=1716000000&amount=500&apikey=i5gzcd56tv988ea1&customer_mobile=9876543210&mid=RPAYZ3734017332&redirect_url=https://yourwebsite.com/payment-response",
"x_signature": "e9d15626e5c2493534bf3de335dde0a1c946331afd2475f5f25945fc5a85350c"
}
}