public ActionResult Configure()
        {
            var model = new ConfigurationModel();
            model.AppId = _weixinPayPaymentSettings.AppId;
            model.Key = _weixinPayPaymentSettings.Key;
            model.AppSecret = _weixinPayPaymentSettings.AppSecret;
            model.MchId = _weixinPayPaymentSettings.MchId;
            model.ReturnUrl = _weixinPayPaymentSettings.ReturnUrl;
            model.SSLCertPath = _weixinPayPaymentSettings.SSLCertPath;
            model.SSLCertPassword = _weixinPayPaymentSettings.SSLCertPassword;
            model.IP = _weixinPayPaymentSettings.IP;

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

            //save settings
            _weixinPayPaymentSettings.AppId = model.AppId;
            _weixinPayPaymentSettings.AppSecret = model.AppSecret;
            _weixinPayPaymentSettings.MchId = model.MchId;
            _weixinPayPaymentSettings.Key = model.Key;
            _weixinPayPaymentSettings.ReturnUrl = model.ReturnUrl;
            _weixinPayPaymentSettings.SSLCertPath = model.SSLCertPath;
            _weixinPayPaymentSettings.SSLCertPassword = model.SSLCertPassword;
            _weixinPayPaymentSettings.IP = model.IP;

            _settingService.SaveSetting(_weixinPayPaymentSettings);

            return Configure();
        }