简要描述:

  • 用户登录接口

请求域名:

  • http://xx.com

请求URL:

GET/route=order.merge-pay

参数:

参数名 类型 是否必须 说明
order_ids int ture 商城订单ID
type int ture type改为7

返回示例:

正确时返回:

  {
result: 1,
msg: "成功",
data: {
order_pay: {
status: 0,
pay_type_id: false,
order_ids: [
1119
],
amount: 0,
uid: 1,
pay_sn: "PN20210220145339X3",
updated_at: "2021-02-20 14:53:39",
created_at: "2021-02-20 14:53:39",
id: 789,
status_name: "未支付",
pay_type_name: null,
orders: [
{
id: 1119,
uniacid: 3,
uid: 1,
order_sn: "SN20210220143853hS",
price: "0.00",
goods_price: "0.00",
goods_total: 1,
status: 0,
create_time: "2021-02-20 14:38:53",
is_deleted: 0,
is_member_deleted: 0,
finish_time: "1970-01-01 08:00:00",
pay_time: "1970-01-01 08:00:00",
send_time: "1970-01-01 08:00:00",
cancel_time: "1970-01-01 08:00:00",
created_at: 1613803133,
updated_at: 1613803133,
deleted_at: 0,
cancel_pay_time: "1970-01-01 08:00:00",
cancel_send_time: "1970-01-01 08:00:00",
dispatch_type_id: 0,
dispatch_price: "0.00",
discount_price: "0.00",
pay_type_id: 0,
order_goods_price: "0.00",
deduction_price: "0.00",
refund_id: 0,
is_plugin: 0,
change_price: "0.00",
change_dispatch_price: "0.00",
comment_status: 0,
order_pay_id: "",
is_virtual: 1,
plugin_id: 70,
mark: "",
is_pending: 0,
no_refund: 0,
note: null,
cost_amount: "0.00",
shop_name: "聚合CPS",
need_address: 1,
auto_receipt: 0,
invoice_type: null,
rise_type: null,
collect_name: null,
company_number: null,
invoice: null,
fee_amount: "0.00",
service_fee_amount: "0.00",
is_all_send_goods: 0,
status_name: "待付款",
pay_type_name: "未支付",
pivot: {
order_pay_id: 789,
order_id: 1119
},
process: [ ],
has_one_pay_type: null,
order_goods: [
{
id: 1019,
uniacid: 3,
goods_id: 395,
pay_sn: "",
total: 1,
create_at: 0,
price: "0.00",
goods_sn: "",
uid: 1,
thumb: "http://test-1251768088.cosgz.myqcloud.com/aggregation_cps",
title: "聚合CPS",
goods_price: "0.00",
goods_option_id: 0,
goods_option_title: "",
product_sn: "",
created_at: "2021-02-20 14:38:53",
updated_at: "2021-02-20 14:38:53",
discount_price: "0.00",
comment_status: 0,
change_price: "0.00",
comment_id: 0,
vip_price: "0.00",
coupon_price: "0.00",
goods_market_price: "0.00",
goods_cost_price: "0.00",
payment_amount: "0.00",
deduction_amount: "0.00",
need_address: 0,
order_express_id: null,
buttons: [ ],
goods: {
id: 395,
uniacid: 3,
brand_id: 0,
type: 2,
status: 1,
display_order: 0,
title: "聚合CPS",
thumb: "aggregation_cps",
thumb_url: null,
sku: "个",
description: "",
content: null,
goods_sn: "",
product_sn: "",
market_price: "1.00",
price: "1.00",
cost_price: "1.00",
stock: 9999995,
reduce_stock_method: 0,
show_sales: 0,
real_sales: 0,
weight: "0.00",
has_option: 0,
is_new: 0,
is_hot: 0,
is_discount: 0,
is_recommand: 0,
is_comment: 0,
is_deleted: 0,
created_at: "2020-12-15 15:47:32",
deleted_at: null,
updated_at: "2020-12-15 15:47:32",
comment_num: 0,
is_plugin: 0,
plugin_id: 70,
virtual_sales: 0,
no_refund: 0,
need_address: 0,
type2: 1,
old_id: null,
volume: null,
status_name: "上架"
},
order: {
id: 1119,
uniacid: 3,
uid: 1,
order_sn: "SN20210220143853hS",
price: "0.00",
goods_price: "0.00",
goods_total: 1,
status: 0,
create_time: "2021-02-20 14:38:53",
is_deleted: 0,
is_member_deleted: 0,
finish_time: "1970-01-01 08:00:00",
pay_time: "1970-01-01 08:00:00",
send_time: "1970-01-01 08:00:00",
cancel_time: "1970-01-01 08:00:00",
created_at: 1613803133,
updated_at: 1613803133,
deleted_at: 0,
cancel_pay_time: "1970-01-01 08:00:00",
cancel_send_time: "1970-01-01 08:00:00",
dispatch_type_id: 0,
dispatch_price: "0.00",
discount_price: "0.00",
pay_type_id: 0,
order_goods_price: "0.00",
deduction_price: "0.00",
refund_id: 0,
is_plugin: 0,
change_price: "0.00",
change_dispatch_price: "0.00",
comment_status: 0,
order_pay_id: "",
is_virtual: 1,
plugin_id: 70,
mark: "",
is_pending: 0,
no_refund: 0,
note: null,
cost_amount: "0.00",
shop_name: "聚合CPS",
need_address: 1,
auto_receipt: 0,
invoice_type: null,
rise_type: null,
collect_name: null,
company_number: null,
invoice: null,
fee_amount: "0.00",
service_fee_amount: "0.00",
is_all_send_goods: 0,
status_name: "待付款",
pay_type_name: "未支付",
process: [ ],
has_one_pay_type: null
}
}
]
}
],
pay_type: null
},
member: {
credit2: "480849.50",
avatar_image: "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/01/u1TuWe8TE9G8ubSxBecU38E9WP8pbG.jpg",
username: null
},
buttons: {
2: {
name: "余额",
value: 3,
need_password: false,
code: "balance"
},
36: {
name: "确认",
value: 54,
need_password: false,
code: "confirmPay"
}
},
typename: "",
min_redirect_url: "",
order_contract: [ ]
}
  }

错误时返回:

  {
  }

参数说明:

参数名 类型 说明
order_pay[id] int 订单支付ID
button array 支付按钮数组
button[name] string 支付按钮名称
button[value] int 支付按钮值
button[code] string 支付按钮码
button[need_password] bool 是否需要支付密码

备注:

  • 更多返回错误代码请看首页的错误代码描述