Exemple #1
0
 public ConsolidatePaymentPaymentProcessor(ILocalizationService localizationService,
                                           IPaymentService paymentService,
                                           ISettingService settingService,
                                           IWebHelper webHelper,
                                           ConsolidatePaymentPaymentSettings ConsolidatePaymentPaymentSettings,
                                           ConsolidatePaymentObjectContext context)
 {
     this._localizationService = localizationService;
     this._paymentService      = paymentService;
     this._settingService      = settingService;
     this._webHelper           = webHelper;
     this._ConsolidatePaymentPaymentSettings = ConsolidatePaymentPaymentSettings;
     this._context = context;
 }
Exemple #2
0
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new ConsolidatePaymentPaymentSettings
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Instructions", "This payment method stores credit card information in database (it's not sent to any third-party processor). In order to store credit card information, you must be PCI compliant.");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.TiendaId", "Tienda");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.OrdenId", "Orden");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.ClienteId", "Cliente");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.BancoEmisorId", "Emisor");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.BancoReceptorId", "Receptor");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.Referencia", "Referencia");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.FechaUltimaActualizacion", "F. Actualizacion");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.BancosEmisores", "Banco");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.BancosReceptores", "Banco");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.MetodosPago", "Metodo de Pago");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.Tiendas", "Tiendas");


            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.BancoEmisor", "Banco");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.BancoReceptor", "Banco");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.EmailEmisor", "Email Emisor");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.MetodoPago", "Metodo de Pago");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Tienda", "Tienda");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.MontoTotalOrden", "Monto Total");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.FechaRegistro", "F. Creado");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.UltimaActualizacion", "F. Actualizado");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Consolidate", "Consolidado");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Pay", "Pagar");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.CodigoMoneda", "CodMoneda");
            _localizationService.AddOrUpdatePluginLocaleResource("plugins.payments.consolidatepayment.referencia", "Referencia");

            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.StatusPaymentOrder", "Estatus");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.MetodoPago", "Metodo de Pago");
            _localizationService.AddOrUpdatePluginLocaleResource("Admin.Orders.Consolidar", "Consolidar Pagos");
            _localizationService.AddOrUpdatePluginLocaleResource("Plugins.Payments.ConsolidatePayment.Fields.Orden", "Orden");
            _localizationService.AddOrUpdatePluginLocaleResource("admin.catalog.payment.manage", "Administrar pagos");

            _context.Install();
            base.Install();
        }