Example #1
0
 public ConsignacionBancariaPaymentProcessor(ConsignacionBancariaPaymentSettings consignacionBancariaPaymentSettings,
                                             ILocalizationService localizationService,
                                             IPaymentService paymentService,
                                             ISettingService settingService,
                                             IShoppingCartService shoppingCartService,
                                             IWebHelper webHelper)
 {
     _consignacionBancariaPaymentSettings = consignacionBancariaPaymentSettings;
     _localizationService = localizationService;
     _paymentService      = paymentService;
     _settingService      = settingService;
     _shoppingCartService = shoppingCartService;
     _webHelper           = webHelper;
 }
Example #2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new ConsignacionBancariaPaymentSettings
            {
                DescriptionText = @"<p>Deberá consignar el valor del pedido a la siguiente cuenta de ahorros <b>449081728</b> del <b>banco de Bogotá</b> y luego enviar el comprobante al correo <b>[email protected]</b>, cualquier inquietud por favor comunicarse con soporte MercaYa</a>.</p>"
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.DescriptionText", "Description");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.DescriptionText.Hint", "Enter info that will be shown to customers during checkout");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payment.ConsignacionBancaria.PaymentMethodDescription", "Consignación Bancaria");

            base.Install();
        }