简要描述:
- 立即购买
请求域名:
请求URL:
POST:route=plugin.store-cashier.frontend.pos.merge-pay.walipay-scan-pay
参数:
| 参数名 | 是否必须 | 类型 | 说明 | |
|---|---|---|---|---|
| auth_code | 是 | string | 微信支付授权码 | |
| buy_id | 是 | int | 购买者id | 没有可不传 |
| store_id | 是 | int | 门店ID | |
| member_coupon_ids | 是 | string | 优惠券id(逗号分隔) | 没有传空 |
| dispatch_type_id | 是 | int | 配送类型 2自提 | 默认传2 |
| amount | 是 | int | 总金额 |
| 商品数组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":{
buyer_logon_id: "uab***@sandbox.com"买家支付宝账号
buyer_pay_amount: "200.00"
buyer_user_id: "2088102176076853"
buyer_user_type: "PRIVATE"
code: "10000"
fund_bill_list: [{amount: "200.00", fund_channel: "ALIPAYACCOUNT"}]
gmt_payment: "2019-10-15 14:41:36"
invoice_amount: "200.00"
msg: "Success"
out_trade_no: "PN20191015143814tB"//商户订单号
point_amount: "0.00"
receipt_amount: "200.00"
total_amount: "200.00"
trade_no: "2019101522001476851000065294" 支付宝交易号
}
错误时返回:
- 缺少访问参数 - 商品ID
{
"result": 0,
"msg": "缺少访问参数",
"data": [ ]
}
### 返回参数说明:
|参数名|类型|说明|
|:----- |:-----|-----|
||||