收藏
回答

请求订单查询接口错误的签名,验签失败?

查询订单接口https://api.mch.weixin.qq.com/v3/pay/transactions/out-trade-no/{out_trade_no}): 错误的签名,验签失败

查询退款订单详情https://api.mch.weixin.qq.com/v3/refund/domestic/refunds/{out_refund_no})是正常的

订单查询错误返回:

{

    "code":"SIGN_ERROR",

    "detail":{

        "detail":{

            "issue":"sign not match"

        },

        "field":"signature",

        "location":"authorization",

        "sign_information":{

            "method":"GET",

            "sign_message_length":127,

            "truncated_sign_message":"GET

/v3/pay/transactions/out-trade-no/xxxx1030417160002109912322?mchid=141******02

1616657630

syBgblReISkl2xRClcQFCcBo0Bcgvlno


",

            "url":"/v3/pay/transactions/out-trade-no/xxxx1030417160002109912322?mchid=141******02"

        }

    },

    "message":"错误的签名,验签失败"

}


最后一次编辑于  03-25
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签