Exemplo n.º 1
0
        public void OrderPay(HttpRequest Request, HttpResponse Response)
        {
            MofangInterface.Model.InputModel.GetPayUrlReq   req  = new MofangInterface.Model.InputModel.GetPayUrlReq();
            MofangInterface.Model.OutputModel.GetPayUrlResp resp = new MofangInterface.Model.OutputModel.GetPayUrlResp();
            req.transNo   = UtilityHelper.BWJSCommonHelper.SafeString(Request["transNo"], "");
            req.caseCode  = UtilityHelper.BWJSCommonHelper.SafeString(Request["caseCode"], "");
            req.insureNum = UtilityHelper.BWJSCommonHelper.SafeString(Request["insureNum"], "");
            req.price     = Convert.ToDouble(Request["price"]);
            BaoxianDataBLL bll = new BaoxianDataBLL();

            resp = bll.GetPayUrl(req);
            Response.Write(SerializerHelper.ToJson(resp));
        }
Exemplo n.º 2
0
        public void GetPayUrl()
        {
            BaoxianDataBLL baoxianDataBLL = new BaoxianDataBLL();
            GetPayUrlReq   model          = new GetPayUrlReq();

            model.transNo  = UtilityHelper.CommonHelper.OrderNoOne();
            model.caseCode = "0000052178002133";
            //model.customkey = "bowangjishi";
            model.insureNum     = "20170907004888";
            model.price         = 50;
            model.pageNoticeUrl = pageNoticeUrl;
            var res = baoxianDataBLL.GetPayUrl(model);
        }