示例#1
0
 public UnaQuincenaPaymentProcessor(UnaQuincenaPaymentSettings unaQuincenaPaymentSettings,
                                    ILocalizationService localizationService,
                                    IPaymentService paymentService,
                                    ISettingService settingService,
                                    IShoppingCartService shoppingCartService,
                                    IWebHelper webHelper)
 {
     _unaQuincenaPaymentSettings = unaQuincenaPaymentSettings;
     _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 UnaQuincenaPaymentSettings
            {
                DescriptionText = "<p>El pago será descontado directamente de la nómina del empleado en una sola quincena.</p>"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.UnaQuincena.DescriptionText", "Description");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.UnaQuincena.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.UnaQuincena.PaymentMethodDescription", "El pago será diferido a una sola quincena");

            base.Install();
        }