收藏
回答

微信支付合单jsapi下单报错,错误码是参数相关,但是提示又是签名问题?

签名明文:

POST

/v3/combine-transactions/jsapi

1701319340

gLGyB5ZSgC3MtTzckQJ58oODncEwtpJg

{"combine_appid":"wx0e2c6cd581093723","combine_mchid":"1492841112","combine_out_trade_no":"51001219202311301242074","notify_url":"https://demo.vipyunxiao.com/planet/future/wechat/combineOrderCallback","combine_payer_info":{"openid":"ob0Ua5CXG8qT8T67mZDPu3ScGhjA"},"sub_orders":[{"mchid":"1492841112","description":"222","out_trade_no":"41001219202311301242083","attach":"410012","amount":{"total":100,"currency":"CNY"}},{"mchid":"1492841112","description":"月卡1","out_trade_no":"11001219202311301242086","attach":"110012","amount":{"total":1,"currency":"CNY"}}]}

请求的headers

Authorization -> WECHATPAY2-SHA256-RSA2048 mchid="1492841112",nonce_str="gLGyB5ZSgC3MtTzckQJ58oODncEwtpJg",timestamp="1701319340",serial_no="18D42C1AD01466A1D2A4CADA019B6A9C5E926460",signature="RQEchNIBX0/SavQaqfPtKKLz/+CMB1GkNHH0ZFi7ekmrm8l+nx8tSLD4IHp/cnM4bpvyxbJ3GStIkhpoRpRpbcdm62Ez5F+wAG4MsEqku2usqu9U6hkCcVf6sHh4uY2hoOALw7NgA3LLlYAZ+Wcl6tXbMxfmm/cqMI0R9s2grgL4g07F5MN8xC8R2WaS4fErJkBuaE4nIscNIIcQeG1vyYNaOVDPz+EiqgJjueUydcEYeKFLR+JwaBOgfbJEMvylA4TnR2TbVzmYJqRa4LU2PNnfKlf+a/qA9nljY12liuSDZTi6bwJQYWFEUVrxWoX0oQChSJ34DebiiqH8tpEDCg=="


返回报文statusCode 400

{"code":"PARAM_ERROR","detail":{"detail":{"issue":"sign not match"},"field":"signature","location":"authorization","sign_information":{"method":"POST","sign_message_length":646,"truncated_sign_message":"POST\n/v3/combine-transactions/jsapi\n1701319340\ngLGyB5ZSgC3MtTzckQJ58oODncEwtpJg\n{\"combin\n","url":"/v3/combine-transactions/jsapi"}},"message":"请求参数有误,请检查后再试。"}


微信验签工具验证通过了,搞不懂哪个参数有问题

回答关注问题邀请回答
收藏

1 个回答

  • Memory
    Memory
    2023-11-30

    你是收付通商户调用的?

    2023-11-30
    有用
    回复
登录 后发表内容