支付方式列表

接口说明

支付时,可调用该接口获取支付方式列表

接口地址

https:// <SQYC_DOMAIN>/carapi/partner/queryPayMethod

请求方式

POST

请求参数

名称 类型 是否必选 说明
channel String yes 渠道名称(由首汽约车给定)
payUserPhone String yes 用户电话
payAmt BigDecimal(20,2) yes 支付金额(单位:元)
operateType Integer yes 操作类型:0-支付,1-充值,2-退款
source Integer yes 来源类型1app,2公众号,3H5,4web,默认1
osType Integer no 当source为1时必传,系统类型1android;2ios
sign String yes 请求签名,根据签名生成规则计算

返回参数

名称 类型 是否必选 说明
result String yes 0:成功;非0:失败原因编号
errmsg String no 失败原因描述,若成功则值为空
data Map<String,Object> no 成功返回,见下面data内容

data内容

名称 类型 是否必填 说明
payTypeList List<Map<String,Object>> no 有数据则返回,见下面payTypeList内容
payTypeList内容
名称 类型 是否必填 说明
payType Integer yes 支付编码
payName String yes 支付名称
paySequence Integer yes 支付排序权重,正序
discountAmount Bigdecimal(20,2) no 折扣金额(单位:元)
reducedAmount Bigdecimal(20,2) no 减免金额=订单金额-折扣金额(单位:元)
discountDesc String no 折扣描述
showContent String no 展示内容
iconUrl String no 图标1
iconUrl2 String no 图标2
disable boolean yes 是否可以支付,比如月不足,false:不可以,true:可以

返回示例

{
    "result": 0,
    "errmsg": "SUCCESS",
    "data": {
        "payTypeList": [{
                "payType": 1,
                "disable": true,
                "showContent": "账户余额不足",
                "reducedAmount": 0,
                "discountDesc": null,
                "iconUrl2": null,
                "discountAmount": 55,
                "iconUrl": "http://img.yun.01zhuanche.com/statics/phone/images/yue3x.png",
                "paySequence": 1,
                "payName": "余额支付"
            },
            {
                "payType": 3,
                "disable": false,
                "showContent": null,
                "reducedAmount": 0,
                "discountDesc": null,
                "iconUrl2": null,
                "discountAmount": 55,
                "iconUrl": "http://img.yun.01zhuanche.com/statics/phone/images/zhifubao3x.png",
                "paySequence": 3,
                "payName": "支付宝支付"
            },
            {
                "payType": 4,
                "disable": false,
                "showContent": null,
                "reducedAmount": 0,
                "discountDesc": null,
                "iconUrl2": null,
                "discountAmount": 55,
                "iconUrl": "http://img.yun.01zhuanche.com/statics/phone/images/weixin3x.png",
                "paySequence": 4,
                "payName": "微信支付"
            }
        ],
        "channelName": "奥迪渠道",
        "channelId": 51,
        "status": 1
    }
}
Copyright © 首约科技(北京)有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2024-09-10 08:00:38

results matching ""

    No results matching ""