简要描述:

  • 提交保证金接口

接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2020-08-13

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
token string token参数

请求参数:

参数名 是否必须 类型 说明
module string 显示模块,请查看模块参数
price float 保证金额度
pay_method string 支付方式 WeChat=微信 Alipay=支付宝 :WeChat
pay_type string 请求类型 app=APP h5=H5 small=小程序,例如:app
user_type string 请求类型 merchant=商家 user=用户,例如:user
openid string 用户openid,小程序/公众号必填

返回示例:

正确时返回:

微信下单
{
    "status": 200,
    "msg": "下单成功",
    "data": {
        "pay_param": {
            "appid": "wxd65a13300ecaae03",
            "partnerid": "1523813651",
            "prepayid": "wx041621250801739cb647b0851854066300",
            "package": "Sign=WXPay",
            "noncestr": "4lgdpsqejfdwe5v2h9eev3et6la9s9ld",
            "timestamp": "1578126083",
            "sign": "03E460AE3CD7905BD5C0AF675C192652"
        }
    }
}

支付宝下单
{
    "status": 200,
    "msg": "下单成功",
    "data": {
        "pay_param": "alipay_sdk=alipay-sdk-php-easyalipay-20190926&app_id=2019121169879357&biz_content=%7B%22body%22%3A%22%E5%9C%A8%E7%BA%BF%E6%94%AF%E4%BB%98%22%2C%22subject%22%3A+%22%E5%9C%A8%E7%BA%BF%E6%94%AF%E4%BB%98%22%2C%22out_trade_no%22%3A+%2220010416261321133264%22%2C%22timeout_express%22%3A+%2260m%22%2C%22total_amount%22%3A+%2250000.00%22%2C%22product_code%22%3A%22QUICK_MSECURITY_PAY%22%7D&charset=UTF-8&format=json&method=alipay.trade.app.pay&notify_url=http%3A%2F%2Fwzb.com%2Fapi%2Fcms%2Fpay%2Fcallback%2FAlipay&sign_type=RSA2&timestamp=2020-01-04+16%3A26%3A13&version=1.0&sign=hEh2T8Mv%2F0gMtp9O8RgCJwk1swpy9DZRtUnpp4EzpIi0A%2FpJwEDjlYUAont%2BvYqvL8xfSYpzCkSWNz1h%2FzKxadYX%2F%2B4OMW%2BmY%2FRzhv8SnVKsqdEjOP8OsFI4TO%2Bmg0UFh1cZ114rbCf4JFVBoaLagMIUk%2Fks66LzOW%2BBhMJKAFyuTGV%2F%2Fc%2BJ98nHWBfbP1j%2BAoAG5b%2Bxxhv6dnMz42i2PYv%2FZUukE8hG8FQKdaOhY3At5cgd%2F3KiP0MJK0eK830KySUHfTVNtESL2pbHhYqBwpbrKNTnD1t83ks7YEsUE4dGNltb10kPQIpVDbhALrGUdKz5Y51ZIWOAj24JsBYdzg%3D%3D"
    }
}

错误时返回:

{
    "status": 0,
    "msg": "店铺名称不能为空"
}

返回参数说明:

参数名 类型 说明

备注:

作者:admin  创建时间:2020-08-13 13:57
 更新时间:2025-04-01 15:40
上一篇:
下一篇: