https://api.mch.weixin.qq.com/pay/refundquery
Map reqData = new HashMap();
reqData.put("appid",appid);
reqData.put("mch_id",metch_id);
reqData.put("nonce_str",WeChatPayUtil.generateNonceStr());
reqData.put("transaction_id",user_transaction_id);
reqData.put("sign",WeChatPayUtil.generateSignature(reqData,private_key));
logger.warn("查询退款所需要的参数: " + reqData);
Map map = wxPay.refundQuery(reqData);
logger.warn("查询退款结果:" + map);
查询退款结果:{return_msg=不识别的参数mch_appid, return_code=FAIL}
贴一下请求参数,看着像Mch_id或者appid传错了
{
sign=BF3948E957CF1B0B53BA3E7DCCB9401F,
mch_id=1573750441,
appid=wxfa762b178a8b0018,
nonce_str=9ljorbQPt68S24HejZxbHrhmPe4iyaXV,
transaction_id=4200000935202104160344960742
}
退款成功,查询退款却有问题,而且退款和查询退款这两次使用的appid和mch_id是同一个