简要描述:

  • 立即购买

请求域名:

请求URL:

POST:route=plugin.store-cashier.frontend.pos.merge-pay.wechat-scan-face-pay

参数:

参数名 是否必须 类型 说明
face_code 是 string 微信支付授权码
openid 是 string 微信用户标识码 没有可不传
device_info 是 string 终端设备号 没有可不传
pay_sn 是 string 支付单号 没有可不传
amount 是 int 总金额 单位:分 即0.01元 则传1
buy_id 是 int 购买者id 没有可不传
store_id 是 int 门店ID
member_coupon_ids 是 string 优惠券id(逗号分隔) 没有传空
dispatch_type_id 是 int 配送类型 2自提 默认传2
商品数组goods 是否必须 类型 说明
goods_id 是 int 商品id
option_id 否 int 规格id 没有可不传
total 是 int 购买数量 (如果是称重商品则传克数)
amount 否 number 称重总价(兼容称重商品)
orders(没有可不传 ) 是否必须 类型 说明
pre_id 是 int 预下单id
deduction_ids [deduction.code] 抵扣码 point积分 love爱心值
note 否 string 订单备注

返回示例:

正确时返回:

{
    "result":1,
    "msg":"成功",
    "data":{
    }
}

错误时返回:

  • 缺少访问参数 - 商品ID
{
    "result": 0,
    "msg": "缺少访问参数",
    "data": [ ]
}


### 返回参数说明:

|参数名|类型|说明|
|:-----  |:-----|-----|

备注: