Exemplo n.º 1
0
        private string GetWapParamJson(string _no_order, string _dt_order, string _money_order, string _user_id, string _id_no, string _acct_name)
        {
            //添加基本参数
            SortedDictionary <string, string> sParaTemp = new SortedDictionary <string, string>();

            sParaTemp.Add("version", _version);
            sParaTemp.Add("oid_partner", _partner);
            sParaTemp.Add("user_id", _user_id);
            sParaTemp.Add("app_request", "3");
            sParaTemp.Add("sign_type", _sign_type);
            sParaTemp.Add("busi_partner", _busi_partner);
            sParaTemp.Add("no_order", _no_order);
            sParaTemp.Add("dt_order", _dt_order);
            sParaTemp.Add("name_goods", "充值");
            sParaTemp.Add("info_order", "用户充值");
            sParaTemp.Add("money_order", _money_order);
            sParaTemp.Add("notify_url", _notify_url);
            sParaTemp.Add("url_return", _return_url);
            sParaTemp.Add("no_agree", "");
            sParaTemp.Add("valid_order", _valid_order);
            sParaTemp.Add("id_type", "0");
            sParaTemp.Add("id_no", _id_no);
            sParaTemp.Add("acct_name", _acct_name);
            sParaTemp.Add("risk_item", createRiskItem());
            //sParaTemp.Add("card_no", "");
            //加签
            string sign = YinTongUtil.addSign(sParaTemp, PartnerConfig.TRADER_PRI_KEY, PartnerConfig.MD5_KEY);

            sParaTemp.Add("sign", sign);
            sParaTemp["risk_item"] = createRiskItem().Replace("\"", "\\\"");

            return(YinTongUtil.dictToJson(sParaTemp));
        }
Exemplo n.º 2
0
        private void GetBaseParam(SortedDictionary <string, string> sParaTemp, string _no_order, string _dt_order, string _money_order, string _user_id, string _userreq_ip)
        {
            //添加基本参数
            string timestamp = YinTongUtil.getCurrentDateTimeStr();             //时间戳

            sParaTemp.Add("version", _version);
            sParaTemp.Add("oid_partner", _partner);
            sParaTemp.Add("user_id", _user_id);
            sParaTemp.Add("sign_type", _sign_type);
            sParaTemp.Add("busi_partner", _busi_partner);
            sParaTemp.Add("no_order", _no_order);
            sParaTemp.Add("dt_order", _dt_order);
            sParaTemp.Add("name_goods", "充值");
            sParaTemp.Add("info_order", "用户充值");
            sParaTemp.Add("money_order", _money_order);
            sParaTemp.Add("notify_url", _notify_url);
            sParaTemp.Add("url_return", _return_url);
            sParaTemp.Add("userreq_ip", _userreq_ip);
            sParaTemp.Add("url_order", "");
            sParaTemp.Add("valid_order", _valid_order);
            sParaTemp.Add("timestamp", timestamp);
            sParaTemp.Add("risk_item", createRiskItem());
            //加签
            string sign = YinTongUtil.addSign(sParaTemp, PartnerConfig.TRADER_PRI_KEY, PartnerConfig.MD5_KEY);
        }
Exemplo n.º 3
0
        public string PostQueryOrder(string _no_order, string _dt_order)
        {
            SortedDictionary <string, string> sParaTemp = new SortedDictionary <string, string>();

            sParaTemp.Add("oid_partner", _partner);
            sParaTemp.Add("sign_type", _sign_type);
            sParaTemp.Add("no_order", _no_order);
            sParaTemp.Add("dt_order", _dt_order);
            string sign = YinTongUtil.addSign(sParaTemp, PartnerConfig.TRADER_PRI_KEY, PartnerConfig.MD5_KEY);

            sParaTemp.Add("sign", sign);

            string reqJson      = YinTongUtil.dictToJson(sParaTemp);
            string responseJSON = Utils.HttpPostByte(ServerURLConfig.QUERY_ORDER, reqJson);

            return(responseJSON);
        }