|
|
@ -115,7 +115,14 @@ public class WxOrderConfig { |
|
|
|
param.put("sign_type", "HMAC-SHA256"); |
|
|
|
param.put("sign_type", "HMAC-SHA256"); |
|
|
|
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256); |
|
|
|
String signStr = WxUtils.generateSignature(param, "Skufk5oi85wDFGl888i6wsRSTkdd5df5" , WXPayConstants.SignType.HMACSHA256); |
|
|
|
param.put("sign", signStr); |
|
|
|
param.put("sign", signStr); |
|
|
|
String resultXmL = doSSLRequest(param.get("mch_id"), "https://api.mch.weixin.qq.com/secapi/pay/refund", WxUtils.mapToXml(param)); |
|
|
|
|
|
|
|
|
|
|
|
String paramXml = WxUtils.mapToXml(param); |
|
|
|
|
|
|
|
log.info("==========退款START========="); |
|
|
|
|
|
|
|
log.info("订单号:" + paySerialNo); |
|
|
|
|
|
|
|
log.info("请求参数:" + paramXml); |
|
|
|
|
|
|
|
String resultXmL = doSSLRequest(param.get("mch_id"), "https://api.mch.weixin.qq.com/secapi/pay/refund", paramXml); |
|
|
|
|
|
|
|
log.info("响应参数:" + resultXmL); |
|
|
|
|
|
|
|
log.info("==========退款END========="); |
|
|
|
return XmlUtil.getObjectFromXML(resultXmL, OrderRefundModel.class); |
|
|
|
return XmlUtil.getObjectFromXML(resultXmL, OrderRefundModel.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|