简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-2-6

请求URL:

请求方式:

  • POST

请求头:

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

请求参数:

参数名 是否必须 类型 说明
module string 显示模块,请查看模块参数
more_id int 新订单id
pay_method string 支付方式【WeChat=微信 Alipay=支付宝】
pay_type string 支付端【app=APP端】

返回示例:

正确时返回:


微信支付
{
    "status": 200,
    "msg": "下单成功",
    "data": {
        "appid": "wx044f6deb55d52eee",
        "partnerid": "1528812791",
        "prepayid": "wx2714184339360914939360ba3563a10000",
        "package": "Sign=WXPay",
        "noncestr": "076omvao2rkwu8aib6uw7cpvpee2at0u",
        "timestamp": "1606457923",
        "sign": "8A88A9EEA10DF7DCB93DD9FE371E75AA",
        "id": 1
    }
}

支付宝支付
{
    "status": 200,
    "msg": "下单成功",
    "data": {
        "result": "alipay_sdk=alipay-sdk-php-easyalipay-20190926&app_id=2021001182619082&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+%2220112714182668291251%22%2C%22timeout_express%22%3A+%2260m%22%2C%22total_amount%22%3A+%2280.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-11-27+14%3A18%3A26&version=1.0&sign=pfl22VQATBLCzcW3RpFlXLMN%2F5WkjoVyfuDHmqbV7vaXz133utBXsnJAjmLMdESol%2Fpu0hH7ICFmaA%2F%2F%2BPqjKFZNPheaItpkYSvfbTIvyzJrxRLcoXGS0%2Bqnh67CxNE0wCCwbHQPUXeXntVY5SoQ4Q%2F7VceOZmdMMaNFiv0qWLM4W9Mb8dFbofpqy5XNcP9JJQoE1Ud5xvcPwK4Zbu4juzQ9BQfClO0uAvSrjoTUZ3NcxuD9I3ziV4wDyG%2FXvlGMg0lPmOAg7Dg09AtsvkMDtWQBUmbzgklNauUQgkLOzdtqX%2Fs6wv%2F78pCNOLrc9Vhai5CVB%2FiMLFoIPAF3Y6qlLQ%3D%3D",
        "id": 57
    }
}

错误时返回:

{
    "status": 0,
    "msg": "参数错误"
}

返回参数说明:

|参数名|类型|说明|

备注:

作者:admin  创建时间:2021-02-06 14:34
 更新时间:2025-04-01 15:40
上一篇:
下一篇: