简要描述:
支付完之后轮询这个接口,成功后跳转申请记录页面
请求域名:
- http://xx.com
请求路由:
POST/&route=plugin.exam-engine.frontend.member-paper.pre-retake
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
id | int | 是 | 考试记录id |
返回示例:
正确时返回答题记录:
{
"result": 1,
"msg": "ok",
"data": {
"retake_fee": 50,
"appointment_id": 1,
"buttons": [
{
"code": "balance",
"name": "余额",
"value": 3,
"weight": 3,
"other": {
"need_password": false,
"usable": "9957760.51",
"sale": [],
"proportion_status": "0",
"recharge_order_pay": false,
"pay_discount_str": ""
},
"icon": {
"icon_url": "icon-pay_yue",
"color": "#ff7433"
}
},
{
"code": "alipay",
"name": "支付宝",
"value": 2,
"weight": 1,
"other": [],
"icon": {
"icon_url": "icon-pay_alipay",
"color": "#29a1f7"
}
}
],
"pay_sn": "NN20250915du9ZfOSYO493nkf0msF6uOO"
},
}
参数名 | 类型 | 说明 |
---|---|---|
result | integer | 请求结果状态码,1 表示成功 |
msg | string | 请求结果消息,"ok" 表示成功 |
data | object | 主要数据对象 |
data.retake_fee | integer | 补考费用 |
data.appointment_id | integer | 预约 ID |
data.buttons | array | 支付方式按钮列表 |
data.buttons[].code | string | 支付方式代码 |
data.buttons[].name | string | 支付方式名称 |
data.buttons[].value | integer | 支付方式值 |
data.buttons[].weight | integer | 支付方式权重(排序用) |
data.buttons[].other | object | 其他支付相关信息 |
data.buttons[].other.need_password | boolean | 是否需要支付密码 |
data.buttons[].other.usable | string | 可用余额 |
data.buttons[].other.sale | array | 销售信息(空数组) |
data.buttons[].other.proportion_status | string | 比例状态 |
data.buttons[].other.recharge_order_pay | boolean | 是否充值订单支付 |
data.buttons[].other.pay_discount_str | string | 支付折扣信息 |
data.buttons[].icon | object | 支付方式图标信息 |
data.buttons[].icon.icon_url | string | 图标 URL 或标识 |
data.buttons[].icon.color | string | 图标颜色(十六进制格式) |
data.pay_sn | string | 支付订单号 |