## 基本信息 接口名称:订单支付 接口路径:POST/v1/payment/pay Mock地址:http://106.52.144.247:3000/mock/249/v1/payment/pay ## 备注 微信支付返回结果示例: { "code": 0, "msg": "success", "data": { "return_code": "SUCCESS", "return_msg": "OK", "result_code": "SUCCESS", "mch_id": 1601795326, "appid": "wx6ef85b08be2f7ea1", "nonce_str": "AbwOfCdcBIxXHjUZ", "sign": "2CA1BDF6B18757BE86053106CAD9A5EA", "prepay_id": "wx141000370927444ccdf1e0d9381cf70000", "trade_type": "MWEB", "mweb_url": "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx141000370927444ccdf1e0d9381cf70000&package=3669602338" } } ## 请求参数 ### Headers: | 参数名称 | 参数值 | 是否必须 | 示例 | 备注 | | :------------- | :-------------------------------- | :------- | :--- | :------- | | Content-Type | application/x-www-form-urlencoded | 是 | | | | x-app-platform | | 是 | h5 | 请求来源 | ### Body: | 参数名称 | 参数类型 | 是否必须 | 示例 | 备注 | | :--------- | :------- | :------- | :------------------------ | :----------------------------------------------------------- | | trade_no | *T*文本 | 是 | QM20211013161751354261165 | 支付流水号,由订单接口返回 | | pay_type | *T*文本 | 是 | 1 | 支付方式,1-微信,2-支付宝,3-银联,5-余额,7-汇聚聚合,8-汇聚银行卡 | | trade_type | *T*文本 | 是 | | 交易类型,由订单接口返回 | | sms_code | *T*文本 | 否 | | 汇聚银行卡支付时,短信验证码 | ## 返回数据 | 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | | :---------- | :----- | :------- | :----- | :------- | :----------------- | | code | number | 非必须 | | | | | msg | string | 非必须 | | | | | data | object | 非必须 | | 支付结果 | **备注:** 支付结果 | | return_code | string | 非必须 | | | | | return_msg | string | 非必须 | | | | | result_code | string | 非必须 | | | | | mch_id | number | 非必须 | | | | | appid | string | 非必须 | | | | | nonce_str | string | 非必须 | | | | | sign | string | 非必须 | | | | | prepay_id | string | 非必须 | | | | | trade_type | string | 非必须 | | | | | mweb_url | string | 非必须 | | | |