Ejemplo n.º 1
0
 public ActionResult PaymentInfo()
 {
     var model = new PaymentInfoModel();
     return View("Nop.Plugin.Payments.AliPay.Views.PaymentAliPay.PaymentInfo", model);
 }
 public ActionResult PaymentInfo()
 {
     var model = new PaymentInfoModel();
     return View("~/Plugins/Payments.AliPay/Views/PaymentAliPay/PaymentInfo.cshtml", model);
 }
        public ActionResult PaymentInfo()
        {
            var model = new PaymentInfoModel();

            model.EnableBankPay = _aliPayPaymentSettings.EnableBankPay;
            model.PayMethod = AliPayPaymentSystemNames.DirectPay;

            #region 支付宝及时到账支付和银联支付
            model.DirectPayMethod = new BankPaymethod()
            {
                Name = "支付宝",
                BankCode = AliPayPaymentSystemNames.DirectPay,
                BankLogo = "alipay"
            };

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "工商银行",
                BankCode = "ICBCB2C",
                BankLogo = "ICBC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "招商银行",
                BankCode = "CMB",
                BankLogo = "CMB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "建设银行",
                BankCode = "CCB",
                BankLogo = "CCB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "中国银行",
                BankCode = "BOCB2C",
                BankLogo = "BOC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "农业银行",
                BankCode = "ABC",
                BankLogo = "ABC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "交通银行",
                BankCode = "COMM",
                BankLogo = "COMM"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "邮政储蓄银行",
                BankCode = "PSBC-DEBIT",
                BankLogo = "PSBC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "光大银行",
                BankCode = "CEBBANK",
                BankLogo = "CEB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "浦发银行",
                BankCode = "SPDB",
                BankLogo = "SPDB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "广东发展银行",
                BankCode = "GDB",
                BankLogo = "GDB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "中信银行",
                BankCode = "CITIC",
                BankLogo = "CITIC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "兴业银行",
                BankCode = "CIB",
                BankLogo = "CIB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "深圳发展银行",
                BankCode = "SDB",
                BankLogo = "SDB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "民生银行",
                BankCode = "CMBC",
                BankLogo = "CMBC"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "北京银行",
                BankCode = "BJBANK",
                BankLogo = "BJBANK"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "杭州银行",
                BankCode = "HZCBB2C",
                BankLogo = "HZCB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "上海银行",
                BankCode = "SHBANK",
                BankLogo = "SHBANK"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "北京农村商业银行",
                BankCode = "BJRCB",
                BankLogo = "BJRCB"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "平安银行",
                BankCode = "SPABANK",
                BankLogo = "SPABANK"
            });

            model.BankPayMethods.Add(new BankPaymethod
            {
                Name = "宁波银行",
                BankCode = "NBBANK",
                BankLogo = "NBBANK"
            });

            #endregion

            return View("~/Plugins/Payments.AliPay/Views/PaymentAliPay/PaymentInfo.cshtml", model);
        }