发起支付
发起支付
请求URL
请求方式
请求参数
参数名 |
类型 |
是否必填 |
描述 |
orderId |
String |
是 |
订单ID |
payType |
String |
是 |
支付方式 |
payChannel |
String |
是 |
支付渠道 |
请求示例
{
"orderId": "1234567890",
"payType": "40001",
"payChannel":"MiddlePlatformPayPlatform"
}
返回参数
参数名 |
类型 |
描述 |
code |
int |
返回码,20000表示成功,其他表示失败 |
data |
Object |
返回数据 |
data.payType |
int |
0:二维码 1:统一支付链接 2:H5支付 3:JSAPI |
data.qrCodeContent |
String |
二维码内容 |
data.qrCodeTime |
int |
二维码过期时间 |
data.orderId |
String |
流水号 |
返回示例
{
"code": 0,
"data": {
"payType":0,
"qrCodeContent":"http://testprepay.hunancatv.com:7002/payplatform/qc/qc!sqc?s=14BR7FI50G0HMH74" ,
"qrCodeTime":5,
"orderId":"20230505050541"
}
}