public override void Install() { var settings = new PayUColombiaPaymentSettings() { AccountID = "", ApiLogin = "", ApiKey = "", MerchantID = "", PayUColombiaUri = "https://test.payu.in/_payment", AdditionalFee = 0, }; _settingService.SaveSetting(settings); //locales _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.AccountID.Hint", "Ingrese su AccountID de su cuenta de PayU."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.AccountID", "AccountID"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.RedirectionTip", "Será redirigido al sitio de PayU Colombia para completar el pedido."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.ApiLogin", "ApiLogin"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.ApiLogin.Hint", "Ingrese su ApiLogin de su cuenta de PayU."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.ApiKey", "ApiKey"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.ApiKey.Hint", "Ingrese su ApiKey de su cuenta de PayU."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.MerchantID", "MerchantID"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.MerchantID.Hint", "Ingrese su MerchantID de su cuenta de PayU."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.PayUColombiaUri", "Pay URI"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.PayUColombiaUri.Hint", "Ingrese la Url de su plataforma de pagos PayU"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.AdditionalFee", "Tarifa Adicional"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.AdditionalFee.Hint", "Ingrese una tarifa adicional para cobrar a sus clientes."); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.UseSandbox", "Use Sandbox"); _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayUColombia.UseSandbox.Hint", "Verificar habilitar Sandbox (Escenario de pruebas)."); base.Install(); }
public PayUColombiaPaymentProcessor(PayUColombiaPaymentSettings payUColombiaPaymentSettings, IAddressService addressService, ISettingService settingService, ICurrencyService currencyService, ILocalizationService localizationService, IHttpContextAccessor httpContextAccessor, CurrencySettings currencySettings, IWebHelper webHelper) { _localizationService = localizationService; _payUColombiaPaymentSettings = payUColombiaPaymentSettings; _settingService = settingService; _currencyService = currencyService; _currencySettings = currencySettings; _webHelper = webHelper; _httpContextAccessor = httpContextAccessor; _addressService = addressService; }