|
@@ -543,6 +543,62 @@ namespace MySystem
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 聚合支付查询接口
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="mchtNo">商户号</param>
|
|
|
+ /// <param name="outOrderNo">商户订单号</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string QueryTradeDetail(string mchtNo, string outOrderNo)
|
|
|
+ {
|
|
|
+ LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒聚合支付查询");
|
|
|
+ Dictionary<string, object> reqdic = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ reqdic.Add("mchtNo", mchtNo); // 商户号
|
|
|
+ reqdic.Add("outOrderNo", outOrderNo); // 商户订单号
|
|
|
+
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ LogHelper.Instance.WriteLog(req, "好哒聚合支付查询");
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
+ LogHelper.Instance.WriteLog("请求头\n" + head, "好哒聚合支付查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒聚合支付查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/query_status", "好哒聚合支付查询");
|
|
|
+ string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/query_status", req, headdic);
|
|
|
+ LogHelper.Instance.WriteLog("返回\n" + result + "\n\n", "好哒聚合支付查询");
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 聚合支付退款查询接口
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="mchtNo">商户号</param>
|
|
|
+ /// <param name="storeNo">门店编号</param>
|
|
|
+ /// <param name="outRefundNo">退款订单号</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string QueryRefundDetail(string mchtNo, string storeNo, string outRefundNo)
|
|
|
+ {
|
|
|
+ LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒退款查询");
|
|
|
+ Dictionary<string, object> reqdic = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ reqdic.Add("mchtNo", mchtNo); // 商户号
|
|
|
+ reqdic.Add("storeNo", storeNo); // 商户订单号
|
|
|
+ reqdic.Add("outRefundNo", outRefundNo);
|
|
|
+
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ LogHelper.Instance.WriteLog(req, "好哒退款查询");
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
+ LogHelper.Instance.WriteLog("请求头\n" + head, "好哒退款查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒退款查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund_query", "好哒退款查询");
|
|
|
+ string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund_query", req, headdic);
|
|
|
+ LogHelper.Instance.WriteLog("返回\n" + result + "\n\n", "好哒退款查询");
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
public Dictionary<string, string> GetHeader(string req)
|
|
|
{
|
|
|
Dictionary<string, string> headdic = new Dictionary<string, string>();
|