使用wx.requestOrderPayment() 一直拉不起支付,错误:errMsg: "requestOrderPayment:fail price_info字段异常,请检查json及字段合法性,"各路大神帮看看是怎么回事,wx.requestOrderPayment() 上传订单和 生成订单api接口是不是二选一就可以了?
{
"address_info":{
"detailed_address":"广东省深圳",
"tel_number":"13530******",
"receiver_name":"吴先生"
},
"delivery_detail":{
"delivery_type":"1"
},
"create_time":"2022-04-15 11:10:37",
"openid":"o4urn5TMsCJxV7gAEorlq9uxo3Qw",
"order_detail":{
"price_info":{
"freight":500,
"additional_price":100,
"order_price":1600
},
"pay_info":{
"pay_method_type":0,
"prepay_time":"2022-04-15 11:10:37",
"prepay_id":"wx1511103796951748df32d0e3d060ba0000"
},
"product_infos":[
{
"out_sku_id":"1481827825871568897",
"product_cnt":10,
"head_img":"https://ishop-20200723.oss-cn-beijing.aliyuncs.com/1/material/befc1826-3a51-4ebf-a2cb-f3a1bc2a17b7.jpg",
"real_price":100,
"title":"测试商品",
"sale_price":100,
"path":"/pages/goods/goods-detail/index?id=1481827825854791681",
"out_product_id":"1481827825854791681"
}
]
},
"path":"/pages/order/order-detail/index?id=1514795994838065153",
"out_order_id":"1514795994838065153",
"out_user_id":"1394173913841123329"
}