Пример #1
0
 public DosQuincenasPaymentProcessor(DosQuincenasPaymentSettings dosQuincenasPaymentSettings,
                                     ILocalizationService localizationService,
                                     IPaymentService paymentService,
                                     ISettingService settingService,
                                     IShoppingCartService shoppingCartService,
                                     IWebHelper webHelper)
 {
     _dosQuincenasPaymentSettings = dosQuincenasPaymentSettings;
     _localizationService         = localizationService;
     _paymentService      = paymentService;
     _settingService      = settingService;
     _shoppingCartService = shoppingCartService;
     _webHelper           = webHelper;
 }
Пример #2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new DosQuincenasPaymentSettings
            {
                DescriptionText = "<p>El pago será descontado directamente de la nómina del empleado en dos quincenas.</p>"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.DosQuincenas.DescriptionText", "Description");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.DosQuincenas.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.DosQuincenas.PaymentMethodDescription", "El pago será diferido en dos quincenas");

            base.Install();
        }