微信小程序端调用B2b支付,一直提示requestCommonPayment:fail webapi_wxa_createmidasorder:fail invalid json 传的参数我使用json工具验证了 ,是正常的json格式
mode: "retail_pay_goods"
paySig: "d307d7c203297ec7cf2049e237af6ef579562a855ee81e5be90cc920fa3eb4b3"
signData: "{"mchid":"1696096777","out_trade_no":"202410300425573601001100","description":"小程序商城下单","amount":{"order_amount":"42000","currency":"CNY"}}"
signature: "c16711f5642d52ce0d6528fd5c05904ffa398870c4b63c7b4b12d535ebbbe7e8"
解决了,原因是金额不是int类型。
这明显不是正确的json。