예제 #1
0
        /// <summary>
        /// 退款处理
        /// </summary>
        /// <param name="param">参数</param>
        /// <returns>退款结果</returns>
        public static string Refund(RefunBusinessParam param)
        {
            SortedDictionary <string, string> paraTemp = new SortedDictionary <string, string>();

            paraTemp.Add("service", "refund_fastpay_by_platform_nopwd");
            paraTemp.Add("batch_no", param.batch_no);
            paraTemp.Add("refund_date", param.refund_date);
            paraTemp.Add("batch_num", param.batch_num);
            paraTemp.Add("detail_data", param.detail_data);

            ProcessBaseParam(param, paraTemp);
            AddSign(paraTemp);

            var request = new Request(Config.Gateway)
            {
                HttpMethod = HttpMethod.Post, Parameters = paraTemp
            };
            var response = HttpRequestService.GetHttpRequest(request);
            var reslt    = ProcessXmlData(response);

            return(reslt);
        }