示例#1
0
    /**
     * 卡前置模式 额外需要的参数
     */
    private SortedDictionary <string, string> getMoreParamDict(SortedDictionary <string, string> sParaTemp)
    {
        string no_agree = "";

        if (!YinTongUtil.isnull(Request["no_agree"]))
        {
            no_agree = Request["no_agree"].Trim();
        }

        string card_no = Request["card_no"].Trim();

        if (!YinTongUtil.isnull(no_agree))
        {
            sParaTemp.Add("no_agree", no_agree);
            sParaTemp.Add("back_url", "http://www.lianlianpay.com/");
            sParaTemp.Add("id_type", "0");                             //证件类型
            sParaTemp.Add("id_no", "410782198912151334");              //身份证
            sParaTemp.Add("acct_name", "连连");
            sParaTemp.Add("flag_modify", "1");
        }
        else
        {
            // 商户从自己系统中读取用户信息填入,这里写死了,须修改
            sParaTemp.Add("id_type", "0");                             //证件类型
            sParaTemp.Add("id_no", "410782198912151334");              //身份证
            sParaTemp.Add("acct_name", "张三");
            sParaTemp.Add("flag_modify", "1");
            sParaTemp.Add("card_no", card_no);                                  //银行卡号
            sParaTemp.Add("back_url", "http://www.lianlianpay.com/");
        }
        return(sParaTemp);
    }
示例#2
0
        /**
         * 卡前置模式 额外需要的参数
         */
        private SortedDictionary <string, string> getParamDict(int _user_id)
        {
            SortedDictionary <string, string> sParaTemp = new SortedDictionary <string, string>();

            //查询会员信息
            //var user = new BLL.users().GetModel(_user_id);
            //if (user != null)
            //{
            sParaTemp.Add("id_type", "0");                                  //证件类型
            sParaTemp.Add("id_no", DTRequest.GetFormString("id_card_no"));  //身份证
            sParaTemp.Add("acct_name", DTRequest.GetFormString("card_username"));
            sParaTemp.Add("flag_modify", "1");
            sParaTemp.Add("back_url", PartnerConfig.URL_BACK);

            string no_agree = "";

            if (!YinTongUtil.isnull(Request["no_agree"]))
            {
                no_agree = Request["no_agree"].Trim();
            }

            if (!YinTongUtil.isnull(no_agree))
            {
                sParaTemp.Add("pay_type", "D");
                sParaTemp.Add("no_agree", no_agree);
            }
            else
            {
                string card_no = Request["card_no"].Trim();
                sParaTemp.Add("card_no", card_no);
            }
            //}
            //else
            //    throw new InvalidOperationException("找不到会员信息!会员id为:" + _user_id);

            return(sParaTemp);
        }