https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/requestOrderPayment.html
前端调用上面api,进行自定义组件订单上传,数据如下:
前端使用该数据报1010005错误,使用数据order_info调用后端https://api.weixin.qq.com/shop/order/add接口可以正常添加订单
{
"timeStamp": "1631012895",
"nonceStr": "wr1glsc7eaml0tddq23tps9hp1m272sf",
"package": "prepay_id=wx0719081562089042843e6b7d122b8d0000",
"signType": "RSA",
"paySign": "fK6ybra695ugC0B367Jn8xhZ2s2WXdXA7YpQslTBti105Bsv7pl7q5fC9Sg3oYtsHi+cMWPeMyq1IltYqzk1K6bRjzPeskfd3GG1HkSSPxTHl7wYaafs3/hGokadAc6lqAwBrsyWdPdwtNT4YZ1ceMaSBP4KtG7lKyS2+kGvpKovTgACH6wgPZ0r7lqcATIuNv1xhvIbCG4HJb1YouYiten5FPhl/1HTsIejMDK9nulis++URWmr06zAmpW2VTpyJ7iK6osZKDU4+n/yE5Z16s9BG2lDmnljY+sX6usEoZCRbeMEpYP3OVCxa1sbT0SxnYhX/h5L3ldsLTbI4Y9O7Q==",
"order_info": {
"create_time": "2021-09-07 19:08:15",
"out_order_id": "1353607598518272",
"openid": "ocUkF5euUcOlNpAGMLBpI6X-WAGo",
"path": "/pages/customer/order-detail/order-detail?order_sn=1353607598518272",
"out_user_id": "595",
"order_detail": {
"product_infos": [
{
"out_product_id": "3",
"out_sku_id": "",
"product_cnt": 1,
"sale_price": 50,
"real_price": 50,
"path": "pages/common/goods-detail/goods-detail?id=3",
"title": "MMA-S 唇膏女01",
"head_img": "https://xxy.qcloud.com/resource/1614913608780396.jpg"
}
],
"pay_info": {
"pay_method_type": 0,
"prepay_id": "wx0719081562089042843e6b7d122b8d0000",
"prepay_time": "2021-09-07 19:08:15"
},
"price_info": {
"order_price": 50,
"freight": 0
}
},
"delivery_detail": {
"delivery_type": 1
},
"address_info": {
"receiver_name": "王磊",
"detailed_address": "天安门广场",
"tel_number": "13333333333",
"province": "北京市",
"city": "北京市"
}
}
}

是用orderInfo 还是用order_info
注意⚠️:这里有深坑。。。
问题1:
文档上面说新增参数orderInfo ,下面接着说order_info参数格式,额,好吧,各位开发者注意啊
问题2:
无论你传的参数对不对hove不传参数,报错信息都是1010005,极具误导性,注意啊