public override void Install()
        {
            //settings
            var settings = new PayPalPlusBrasilPaymentSettings
            {
                UseSandbox = true,
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.UseSandbox", "Use Sandbox");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPISandBoxAccount", "Rest API Account");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPISandBoxAccount.Hint", "Specify API account name.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPIClientId", "Rest API Client Id");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPIClientId.Hint", "Specify Rest API client Id.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPISecrect", "Rest API Client Secrect");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.RestAPISecrect.Hint", "Specify API Client Secrect.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.IdButtonConfirmOrFunction", "Id Buttom Confirm or Function Callback");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.IdButtonConfirmOrFunction.Hint", "Caso uma string seja fornecida, ela será interpretada como o ID de um formulário no documento que será submetido quando o botão de Continuar Externo for clicado (pode ser qualquer elemento). Caso uma função de callback seja fornecida, ela será executada apenas quando o botão de Continuar Externo for clicado.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.HabilitarParcelamento", "Habilitar o parcelamento");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.HabilitarParcelamento.Hint", "Habilita o parcelamento no pagamento");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ParcelamentoMaximo", "Quantidade de Parcelas Máxima");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.Log", "Habilita o log");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileName", "Nome do ambiente de execução");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileName.Hint", "Nome do ambiente de execução ( ex: Nome da Máquina, dispositivo, ambiente DEV-HOM-PROD");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileBrandName", "Nome da marca");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileBrandName.Hint", "Nome da marca do ambiente de execução");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileLocaleCode", "Local Code do ambiente de execução (BR)");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.PayPalPlusBrasil.Fields.ProfileLocaleCode.Hint", "Local Code do ambiente de execução (BR)");


            base.Install();
        }
 public PayPalPlusBrasilPaymentProcessor(
     IWorkContext workContext,
     IStoreService storeService,
     PayPalPlusBrasilPaymentSettings payPalPlusBrasilPaymentSettings,
     ISettingService settingService,
     IGenericAttributeService genericAttributeService,
     ICurrencyService currencyService, ICustomerService customerService,
     CurrencySettings currencySettings, IWebHelper webHelper,
     IOrderTotalCalculationService orderTotalCalculationService,
     IOrderNoteService orderNoteService
     )
 {
     _workContext  = workContext;
     _storeService = storeService;
     _payPalPlusBrasilPaymentSettings = payPalPlusBrasilPaymentSettings;
     _settingService          = settingService;
     _genericAttributeService = genericAttributeService;
     _currencyService         = currencyService;
     _customerService         = customerService;
     _currencySettings        = currencySettings;
     _webHelper = webHelper;
     _orderTotalCalculationService = orderTotalCalculationService;
     _orderNoteService             = orderNoteService;
 }