Table of Contents
6.9 支付方式列表【基础探测通过,待数据联调】
GET /tieup/api/v1/payment-methods
查询参数:无。除全局基础请求头外,不需要提交业务类型、金额或支付场景。
响应字段:
| 字段 | 类型 | 说明 |
|---|---|---|
data[].method_code |
string | 支付方式编码 |
data[].method_name |
string | 支付方式名称 |
data[].enabled |
boolean | 是否启用 |
响应示例:
{
"code": 200,
"message": "成功",
"data": [
{
"method_code": "wechat",
"method_name": "微信支付",
"enabled": true
},
{
"method_code": "alipay",
"method_name": "支付宝",
"enabled": true
}
]
}
说明:服务端按 X-App-Platform 判断客户端平台,ios / iphone / ipad / 1 读取 iOS 支付账号,android / 2 读取 Android 支付账号,h5 / 3 读取 H5 支付账号。缺失或无法识别时回退为通用 platform=0,通用账号不参与支付方式展示和下单。接口只返回当前具体平台已启用支付账号对应的启用支付方式,不读取业务类型、金额或旧支付路由表,不创建订单。