wx.requestCommonPayment
报错:fail invalid signature 702002(env: Windows,mp,1.06.2409140; lib: 3.6.5);根据官方的"参考的python脚本"给的示例数据,得到的签名数据没有问题;使用自己的sessionKey,以及appKey出现上面的报错,uri参数值为requestCommonPayment;
经检查,sessionKey未过期,因为签名前调用了checksession接口验证sessionKey有效;appKey也与env=0(正式环境对应);
唯一不确定的是uri参数,官方文档没找到wx.requestCommonPayment对应的uri是什么,只是看有人回复说是"requestCommonPayment",
想问下问题出在哪里?
参数:
mode: "retail_pay_goods"
paySig: "3023cf440a89f4dae2cca7b2c0c71d69e5259b77b12f1aa7b3b115e1e2c53aaf"
signature: "fd173447c69402adae043382905075a7d8ca22e4883f4af66f504c3e0538f1ab"
signData: {"mchid":"1702994659","out_trade_no":"test1244","description":"测试测试","amount":{"order_amount":1,"currency":"CNY"},"attach":"test_attach","product_info":{"product_list":[{"spu_id":"spu123456","sku_id":"sku123","title":"QQ长鹅","path":"pages/index","head_img":"https://mp.weixin.qq.com/123","category":"玩偶","sku_attr":"50cm","org_price":5000,"sale_price":4000,"quantity":5}]},"delivery_type":2,"env":0}