public ActionResult Configure() { var model = new ConfigurationModel(); model.MerchantId = _EmiPaymentSettings.MerchantId; model.Key = _EmiPaymentSettings.Key; model.MerchantParam = _EmiPaymentSettings.MerchantParam; model.PayUri = _EmiPaymentSettings.PayUri; model.AdditionalFee = _EmiPaymentSettings.AdditionalFee; // return View("Nop.Plugin.Payments.Payu.Views.PaymentPayu.Configure", model); return View("~/Plugins/Payments.Emi/Views/PaymentEmi/Configure.cshtml", model); //return View("~/Plugins/Payments.PayPalStandard/Views/PaymentPayPalStandard/Configure.cshtml", model); }
public ActionResult Configure(ConfigurationModel model) { if (!ModelState.IsValid) return Configure(); //save settings _EmiPaymentSettings.MerchantId = model.MerchantId; _EmiPaymentSettings.Key = model.Key; _EmiPaymentSettings.MerchantParam = model.MerchantParam; _EmiPaymentSettings.PayUri = model.PayUri; _EmiPaymentSettings.AdditionalFee = model.AdditionalFee; _settingService.SaveSetting(_EmiPaymentSettings); //return View("Nop.Plugin.Payments.Payu.Views.PaymentPayu.Configure", model); //return View("~/Plugins/Payments.Payu/Views/PaymentPayu/Configure.cshtml", model); SuccessNotification(_localizationService.GetResource("Admin.Plugins.Saved")); return Configure(); }