Ejemplo n.º 1
0
 public ContraEntregaPaymentProcessor(ContraEntregaPaymentSettings ContraEntregaPaymentSettings,
                                      ILocalizationService localizationService,
                                      IPaymentService paymentService,
                                      ISettingService settingService,
                                      IShoppingCartService shoppingCartService,
                                      IWebHelper webHelper)
 {
     _ContraEntregaPaymentSettings = ContraEntregaPaymentSettings;
     _localizationService          = localizationService;
     _paymentService      = paymentService;
     _settingService      = settingService;
     _shoppingCartService = shoppingCartService;
     _webHelper           = webHelper;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new ContraEntregaPaymentSettings
            {
                DescriptionText = @"<p>El pedido se debera pagar contra entrega y en efectivo, cualquier inquietud por favor comunicarse con soporte MercaYa</a>.</p>"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ContraEntrega.DescriptionText", "Description");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ContraEntrega.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ContraEntrega.PaymentMethodDescription", "Contra Entrega");

            base.Install();
        }