public ActionResult Configure() { var model = new ConfigurationModel(); model.SellerEmail = _aliPayPaymentSettings.SellerEmail; model.Key = _aliPayPaymentSettings.Key; model.Partner = _aliPayPaymentSettings.Partner; model.AdditionalFee = _aliPayPaymentSettings.AdditionalFee; return View("~/Plugins/Payments.AliPay/Views/PaymentAliPay/Configure.cshtml", model); }
public ActionResult Configure() { var model = new ConfigurationModel(); model.SellerEmail = _aliPayPaymentSettings.SellerEmail; model.Key = _aliPayPaymentSettings.Key; model.Partner = _aliPayPaymentSettings.Partner; model.AdditionalFee = _aliPayPaymentSettings.AdditionalFee; return View("Nop.Plugin.Payments.AliPay.Views.PaymentAliPay.Configure", model); }
public ActionResult Configure(ConfigurationModel model) { if (!ModelState.IsValid) return Configure(); //save settings _aliPayPaymentSettings.SellerEmail = model.SellerEmail; _aliPayPaymentSettings.Key = model.Key; _aliPayPaymentSettings.Partner = model.Partner; _aliPayPaymentSettings.AdditionalFee = model.AdditionalFee; _settingService.SaveSetting(_aliPayPaymentSettings); return Configure(); }
public ActionResult Configure() { var model = new ConfigurationModel(); model.SellerEmail = _aliPayPaymentSettings.SellerEmail; model.Key = _aliPayPaymentSettings.Key; model.Partner = _aliPayPaymentSettings.Partner; model.AdditionalFee = _aliPayPaymentSettings.AdditionalFee; model.ReturnUrl = _aliPayPaymentSettings.ReturnUrl; model.InvoiceSubject = _aliPayPaymentSettings.InvoiceSubject; model.InvoiceBody = _aliPayPaymentSettings.InvoiceBody; model.EnableBankPay = _aliPayPaymentSettings.EnableBankPay; return View("~/Plugins/Payments.AliPay/Views/PaymentAliPay/Configure.cshtml", model); }
public ActionResult Configure(ConfigurationModel model) { if (!ModelState.IsValid) return Configure(); //save settings _aliPayPaymentSettings.SellerEmail = model.SellerEmail; _aliPayPaymentSettings.Key = model.Key; _aliPayPaymentSettings.Partner = model.Partner; _aliPayPaymentSettings.AdditionalFee = model.AdditionalFee; _aliPayPaymentSettings.ReturnUrl = model.ReturnUrl; _aliPayPaymentSettings.InvoiceBody = model.InvoiceBody; _aliPayPaymentSettings.InvoiceSubject = model.InvoiceSubject; _aliPayPaymentSettings.EnableBankPay = model.EnableBankPay; _settingService.SaveSetting(_aliPayPaymentSettings); return Configure(); }