public PayWompiPaymentProcessor(PayWompiPaymentSettings payWompiPaymentSettings, ISettingService settingService, ICurrencyService currencyService, ILocalizationService localizationService, IHttpContextAccessor httpContextAccessor, CurrencySettings currencySettings, IWebHelper webHelper, WompiHttpClient wompiHttpClient) { _localizationService = localizationService; _payWompiPaymentSettings = payWompiPaymentSettings; _settingService = settingService; _currencyService = currencyService; _currencySettings = currencySettings; _webHelper = webHelper; _httpContextAccessor = httpContextAccessor; _wompiHttpClient = wompiHttpClient; }
public override void Install() { var settings = new PayWompiPaymentSettings() { PayWompiUri = "https://checkout.wompi.co/p/", AdditionalFee = 0, }; _settingService.SaveSetting(settings); //locales _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.Publickey.Hint", "Ingrese su llave publica."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.Publickey", "Publickey"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.RedirectionTip", "Será redirigido al sitio de Wompi Colombia para completar el pedido."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.PayWompiUri", "Pay URI"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.PayWompiUri.Hint", "Ingrese la Url de su plataforma de pagos Wompi."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.AdditionalFee", "Tarifa Adicional"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayWompi.AdditionalFee.Hint", "Ingrese una tarifa adicional para cobrar a sus clientes."); base.Install(); }