小程序
小游戏
企业微信
微信支付
扫描小程序码分享
orderInfo的格式到底是什么?一直拉不起来支付窗口,支付错误(errMsg: "requestOrderPayment:fail price_info字段异常,请检查json及字段合法性)"
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
看文档:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/requestOrderPayment.html
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
{"create_time":"2022-03-01 11:36:21","openid":"o8Gw9412hHojRQh06VRQfIcwedsc","order_detail":{"pay_info":{"pay_method_type":0,"prepay_id":"wx0111362214224570f70a9f3ba0a4a20000","prepay_time":"2022-03-01 11:36:21"},"price_info":{"freight":0,"order_price":249600},"product_infos":[{"out_product_id":"testhotel19472","out_sku_id":"testhotel19472","path":"/pages/good/index?id=9472","product_cnt":1,"real_price":249600,"sale_price":249600,"title":"测试商品","head_img":"http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg"}]},"out_order_id":"A861057810","out_user_id":"28088391388","path":"/pages/book/good/index?resNo=A861057810"}
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
看文档:https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/business-capabilities/ministore/minishopopencomponent2/API/order/requestOrderPayment.html
仔细核对文档,你好好对比一下必传字段吧
{"create_time":"2022-03-01 11:36:21","openid":"o8Gw9412hHojRQh06VRQfIcwedsc","order_detail":{"pay_info":{"pay_method_type":0,"prepay_id":"wx0111362214224570f70a9f3ba0a4a20000","prepay_time":"2022-03-01 11:36:21"},"price_info":{"freight":0,"order_price":249600},"product_infos":[{"out_product_id":"testhotel19472","out_sku_id":"testhotel19472","path":"/pages/good/index?id=9472","product_cnt":1,"real_price":249600,"sale_price":249600,"title":"测试商品","head_img":"http://img10.360buyimg.com/n1/s450x450_jfs/t1/85865/39/13611/488083/5e590a40E4bdf69c0/55c9bf645ea2b727.jpg"}]},"out_order_id":"A861057810","out_user_id":"28088391388","path":"/pages/book/good/index?resNo=A861057810"}