异常 {"errcode":1010004,"errmsg":"pay_info字段异常,请检查json及字段合法性 rid: 6247bb8b-6fcb232c-4ccecb74"}
各路大神帮看看是怎么回事,明明已经按照文档的参数请求了,还是报异常。
{
"address_info":{
"detailed_address":"陕西省西安市新城区测试",
"tel_number":"1353*******",
"receiver_name":"吴先生"
},
"create_time":"2022-04-02 10:57:09",
"fund_type":0,
"openid":"o4urn5TMsCJxV7gAEo*********",
"expire_time":"1648870029",
"order_detail":{
"price_info":{
"freight":1600,
"additional_price":1500,
"order_price":9632
},
"pay_info":{
"pay_method_type":0
},
"product_infos":[
{
"out_sku_id":"1491693369080709121",
"product_cnt":1,
"head_img":"https://ishop-20200723.oss-cn-beijing.aliyuncs.com/1/material/dd1e5de5-ea9e-4118-9ffb-b43365b44b09.jpg",
"title":"假绵羊",
"sale_price":3312,
"path":"/pages/goods/goods-detail/index?id=1491693369068126209",
"out_product_id":"1491693369068126209",
"sku_real_price":4077
},
{
"out_sku_id":"1375265876317372418",
"product_cnt":1,
"head_img":"https://ishop-20200723.oss-cn-beijing.aliyuncs.com/1/material/0c1da2f7-7c3e-4531-95dd-030771123b36.jpg",
"title":"三点白",
"sale_price":3220,
"path":"/pages/goods/goods-detail/index?id=1375016428236505090",
"out_product_id":"1375016428236505090",
"sku_real_price":3955
}
]
},
"scene":"1037",
"out_order_id":"1501239919125479426"
}
fund_type = 1 的时候,pay_info 里面才不用传prepay_id,prepay_time,
视频号支付场景,需要 fund_type = 1
看生成支付参数接口描述
https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/getpaymentparams.html