1.
发起支付会话并创建订单。请求成功后,系统将返回安全的托管支付链接,商户可直接跳转或将其转换为二维码。
2.
签名算法:排序: 将除 sign 外的所有请求参数按 ASCII 码升序排列。拼接: 以 Query String 格式拼接参数,并在末尾附加 &key=YOUR_APP_SECRET。加密: 对拼接后的字符串进行 MD5 摘要计算以生成签名。
3.
安全提示: appSecret 是敏感凭证,请勿在前端代码中泄露。如疑泄露,请立即联系客服重置。
Request
Body Params application/jsonRequired
{
"app_key": "eJcvfTazer3ufzjWnrmzGDbNxYBW3B7M",
"order_no": "string",
"amount": "string",
"pay_type": "string",
"callback_url": "string",
"sign": "dc645b242021f060e9eca5e8f3d2ff92",
"return_url": "string",
"real_name": "string",
"cert_no": "string",
"mobile": "string"
}
Request Code Samples
curl --location --request POST '/v1/payments' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_key": "eJcvfTazer3ufzjWnrmzGDbNxYBW3B7M",
"order_no": "string",
"amount": "string",
"pay_type": "string",
"callback_url": "string",
"sign": "dc645b242021f060e9eca5e8f3d2ff92",
"return_url": "string",
"real_name": "string",
"cert_no": "string",
"mobile": "string"
}'
Responses
application/json {
"code": 200,
"data": {
"url": "https://xxx.xxxxxxxx.com/v1/checkout/T2023101023343803870785",
"exp_time": "2023-10-10 23:34:39"
},
"message": "success"
}
Modified at 2026-02-27 05:28:35