过了10分钟再次购买成功了,可能和缓存有关
自定义交易组件开发者工具可以支付成功,上线后从视频号直播进行购买,支付失败,现在不知什么原因?根据自定义交易组件的指引,使用开发者工具模拟视频号直播,做如下步骤: 1、在app.json中增加 "usingShopPlugin": true; 2、使用wx.requestOrderPayment替换wx.requestPayment,并增加orderInfo的字段 3、场景值切换为1177进行模拟测试,支付正常 上线后从视频号直播进行购买,支付失败! https://developers.weixin.qq.com/miniprogram/dev/framework/ministore/minishopopencomponent2/guideline_tech.html orderInfo的传参{"address_info":{"detailed_address":"江苏省","receiver_name":"孙女士","rowVersion":0,"tel_number":"15962150123"},"openid":"oANYh0fj7ZemMDVewNm-oGKUUM12","order_detail":{"pay_info":{"pay_method":"微信支付","prepay_id":"1400405442318561280","prepay_time":"2021-06-03 18:54:19","rowVersion":0},"price_info":{"discounted_price":0,"freight":0,"order_price":1,"rowVersion":0},"product_infos":[{"head_img":"https://img.xiniunet.com/1214417464339861504/1214417464713158656/1398196621705723904.jpg","out_product_id":"1398196531784040448","path":"ebizPackage/pages/productdetail/productdetail?currentItemId=1398196531784040448&clazzType=STANDARD","product_cnt":1,"rowVersion":0,"sale_price":1,"title":"碗"}]},"out_order_id":"1400405442318561280","path":"ebizPackage/pages/orders/show?order_id=1400405442318561280&status=ALL","xnTraceId":"6400328446192796000538"} [图片][图片][图片][图片]
2021-06-03