文档
测试

订单支付

POST
/api/orders/orderPay

请求头

参数名
类型
描述
必填
Cookie
String
必填

请求参数

参数名
类型
描述
必填
orderIds
string
订单号。示例:20210816205802775364
必填
payMode
string
支付渠道。示例:balance
必填
paypassword
string
支付密码。示例:
可选
isGetPayInfo
boolean
是否获取支付信息。示例:true-是,false-否。
必填
usePoint
int
使用番豆(积分)示例:1000
必填
couponId
string
优惠券id。示例:
可选
notifypage
string
回调通知页。示例:http://test.fanduola.com:8000/#/buyok?orders=20210816205802775364
必填

响应参数

参数名
类型
描述
必填
result
int
示例:0
必填
data
object
数据字典
必填
uid
string
用户uid。示例:302140
必填
prdNames
string
商品名称。示例:LASUS莱秀思温和净颜卸妆水
必填
orderPoint
int
订单所属积分。示例:0
必填
quantity
int
商品数量。示例:1
必填
payMoney
int
支付金额。示例:89
必填
orderMoney
int
订单金额。示例:99
必填
payMode
string
支付方式,。示例:balance-余额支付,alipay-支付宝支付,wechat_mini_app_pay-微信小程序支付,h5:wechat-微信h5支付。
必填
orders
string
订单号。示例:20210816205802775364
必填
payinfo
object
数据字典
必填
prepay_info
string
示例:BALANCE
必填
status
int
示例:0
必填
items
array
数据列表
必填
prdid
int
示例:242
必填
amt_point
int
示例:0
必填
quantity
int
示例:1
必填
cost
int
示例:13
必填
newstatus
int
示例:2
必填
price_money
int
示例:99
必填
orderid
string
示例:20210816205802775364
必填
discount
int
示例:0
必填
marking_price
int
示例:99
必填
uid
string
示例:302140
必填
catid
int
示例:1003
必填
shipping_mode
string
示例:1
必填
bizid
object
示例:null
必填
iconurl
string
示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/products/2021/06/29/products_2021-06-29_03-13-21_71304.png
必填
amt_money
int
示例:99
必填
prdname
string
示例:LASUS莱秀思温和净颜卸妆水
必填
total_money
int
示例:89
必填
total_point
int
示例:1000
必填
ordertype
string
示例:MALL
必填
payPoint
int
示例:1000
必填
ispaied
int
示例:1
必填
msg
string
示例:Success
必填

说明 / 示例

``` h5支付请求参数示例: { "orderIds": "20210831150345759809", "payMode": "h5:wechat", "paypassword": "", "isGetPayInfo": true, "usePoint": 0, "couponId": "", "notifypage": "http://test.fanduola.com:8000/#/buyok?orders=20210831150345759809" } h5支付返回参数示例: { "result": 0, "data": { "uid": "302140", "prdNames": "testpay", "orderPoint": 0, "quantity": 1, "orderMoney": 0.01, "payMode": "h5:wechat", "orders": "20210831154140539791", "items": [ { "prdid": 324, "amt_point": 0, "quantity": 1, "cost": 0, "price_money": 0.01, "orderid": "20210831154140539791", "sku_info": null, "discount": 0, "marking_price": 0.01, "uid": "302140", "catid": 1003, "shipping_mode": "1", "bizid": null, "iconurl": "https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/products/2021/06/24/products_2021-06-24_09-54-00_15838.png", "amt_money": 0.01, "prdname": "testpay", "ordertype": "MALL" } ], "payInfo": "https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx0111054028226107a24502ec18affd0000&package=1607141263&redirect_url=http%3A%2F%2Ftest.fanduola.com%3A8000%2F%23%2Fbuyok%3Forders%3D20210831154140539791", "ispaied": 0, "ordertype": "MALL" }, "msg": "Success" } ``` ``` ```