public ActionResult Configure()
        {
            var model = new ConfigurationModel();
            model.UseSandbox = _stripePaymentSettings.UseSandbox;
            model.TransactModeId = Convert.ToInt32(_stripePaymentSettings.TransactMode);
            model.TransactionKey = _stripePaymentSettings.TransactionKey;
            model.LoginId = _stripePaymentSettings.LoginId;
            model.AdditionalFee = _stripePaymentSettings.AdditionalFee;
            model.TransactModeValues = _stripePaymentSettings.TransactMode.ToSelectList();

            return View("~/Plugins/Payments.Stripe/Views/PaymentStripe/Configure.cshtml", model);
        }
        public ActionResult Configure(ConfigurationModel model)
        {
            if (!ModelState.IsValid)
                return Configure();

            //save settings
            _stripePaymentSettings.UseSandbox = model.UseSandbox;
            _stripePaymentSettings.TransactMode = (TransactMode)model.TransactModeId;
            _stripePaymentSettings.TransactionKey = model.TransactionKey;
            _stripePaymentSettings.LoginId = model.LoginId;
            _stripePaymentSettings.AdditionalFee = model.AdditionalFee;
            _settingService.SaveSetting(_stripePaymentSettings);

            model.TransactModeValues = _stripePaymentSettings.TransactMode.ToSelectList();

            return View("~/Plugins/Payments.Stripe/Views/PaymentStripe/Configure.cshtml", model);
        }