POST xuner/soc/Social/wxPay

微信支付预下单

请求信息

URI 参数

无。

Body 参数

WxPayRequest
名称描述类型附加信息
orderid

商家订单号

string

无。

paytotal

支付金额

decimal number

无。

openid

用户的openid

string

无。

payorderid

string

无。

hash

string

无。

iswxmini

区分小程序和公众号(0表示公众号 1表示小程序)

string

无。

请求格式

application/json, text/json

样例:
{
  "orderid": "sample string 1",
  "paytotal": 2.1,
  "openid": "sample string 3",
  "payorderid": "sample string 4",
  "hash": "sample string 5",
  "iswxmini": "sample string 6"
}

响应信息

资源描述

微信支付预下单

gSocResponseOfWxPayResponse
名称描述类型附加信息
data

WxPayResponse

无。

req

string

无。

msg

string

无。

code

integer

无。

响应格式

application/json, text/json

样例:
{
  "data": {
    "orderid": "sample string 1",
    "nonceStr": "sample string 2",
    "prepay_id": "sample string 3",
    "sign": "sample string 4",
    "appid": "sample string 5",
    "timeStamp": "sample string 6",
    "msg": "sample string 7",
    "code": 8
  },
  "req": "sample string 1",
  "msg": "sample string 2",
  "code": 3
}