public override void Install()
        {
            var settings = new PayEpaycoPaymentSettings()
            {
                PayEpaycoUri  = "https://secure.payco.co/checkout.php",
                AdditionalFee = 0,
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AccountID.Hint", "Ingrese su AccountID de su cuenta de Epayco.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AccountID", "AccountID");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Key.Hint", "Ingrese su llave Secreta.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Key", "Key");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Publickey.Hint", "Ingrese su llave publica.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.Publickey", "Publickey");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.RedirectionTip", "Será redirigido al sitio de Epayco Colombia para completar el pedido.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.PayEpaycoUri", "Pay URI");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.PayEpaycoUri.Hint", "Ingrese la Url de su plataforma de pagos Epayco.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AdditionalFee", "Tarifa Adicional");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.AdditionalFee.Hint", "Ingrese una tarifa adicional para cobrar a sus clientes.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.UseSandbox", "Use Sandbox");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayEpayco.UseSandbox.Hint", "Verificar habilitar Sandbox (Escenario de pruebas).");

            base.Install();
        }
 public PayEpaycoPaymentProcessor(PayEpaycoPaymentSettings PayEpaycoPaymentSettings,
                                  IAddressService addressService,
                                  ISettingService settingService, ICurrencyService currencyService,
                                  ILocalizationService localizationService,
                                  IHttpContextAccessor httpContextAccessor,
                                  CurrencySettings currencySettings, IWebHelper webHelper, EpaycoHttpClient EpaycoHttpClient)
 {
     _localizationService      = localizationService;
     _PayEpaycoPaymentSettings = PayEpaycoPaymentSettings;
     _settingService           = settingService;
     _currencyService          = currencyService;
     _currencySettings         = currencySettings;
     _webHelper           = webHelper;
     _httpContextAccessor = httpContextAccessor;
     _EpaycoHttpClient    = EpaycoHttpClient;
     _addressService      = addressService;
 }