예제 #1
0
        /// <summary>
        /// 支付通知
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        public UnicomPayResInfo payres(UnicomPayResParam param)
        {
            UnicomPayResInfo            info       = null;
            Dictionary <String, String> parameters = new Dictionary <String, String>();

            parameters.Add("authcode", param.authcode);
            parameters.Add("servicename", param.servicename);
            parameters.Add("trandateTime", param.trandateTime);
            parameters.Add("reqsn", param.reqsn);
            parameters.Add("loginId", param.loginId);

            parameters.Add("orderno", param.orderno);
            parameters.Add("phoneNo", param.phoneNo);
            parameters.Add("accountNo", param.accountNo);
            parameters.Add("trandeNo", param.trandeNo);
            parameters.Add("realAmout", param.realAmout);
            parameters.Add("payCode", param.payCode);
            parameters.Add("terminalNo", param.terminalNo);

            string jsonText = HttpHelper.getHttp(SysConfigHelper.readerNode("UnicomPayresName"), parameters, null);

            //反序列化JSON字符串,将JSON字符串转换成LIST列表
            info = JsonConvert.DeserializeObject <UnicomPayResInfo>(jsonText);

            return(info);
        }
예제 #2
0
 /// <summary>
 /// 订单通知
 /// </summary>
 /// <param name="param"></param>
 /// <returns></returns>
 public static UnicomPayResInfo payres(UnicomPayResParam param)
 {
     param.authcode     = SysBLL.Authcode;
     param.servicename  = "DD004";
     param.trandateTime = SysBLL.getYYYYMMDDHHMMSSTime();
     param.reqsn        = SysBLL.getSerialNum();
     param.loginId      = SysBLL.getCpuNo();
     //param.trandeNo = SysBLL.getSerialNum();
     //param.payCode = "Z000000004";
     return(access.payres(param));
 }