Ejemplo n.º 1
0
        public override void Install()
        {
            //settings
            var settings = new EigenPaymentSettings()
            {
                UseSandbox   = true,
                TerminalID   = "",
                HashPassword = ""
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Notes", "If you're using this gateway, ensure that your primary store currency is supported by Eigen.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.UseSandbox", "Use Sandbox");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.UseSandbox.Hint", "Check to enable Sandbox (testing environment).");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.AllowStoringTransactionLog", "Store Transaction Log");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.AllowStoringTransactionLog.Hint", "Store Transaction Log in Database");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.TerminalID", "Terminal ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.TerminalID.Hint", "Terminal ID");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.HashPassword", "Hash Password");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Eigen.Fields.HashPassword.Hint", "HashPassword");

            base.Install();
        }
Ejemplo n.º 2
0
 public EigenPaymentProcessor(EigenPaymentSettings eigenPaymentSettings,
                              ISettingService settingService,
                              ICurrencyService currencyService,
                              ICustomerService customerService,
                              CurrencySettings currencySettings, IWebHelper webHelper,
                              IOrderTotalCalculationService orderTotalCalculationService, IEncryptionService encryptionService,
                              IOrderService orderService)
 {
     this._eigenPaymentSettings         = eigenPaymentSettings;
     this._settingService               = settingService;
     this._currencyService              = currencyService;
     this._customerService              = customerService;
     this._currencySettings             = currencySettings;
     this._webHelper                    = webHelper;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._encryptionService            = encryptionService;
     this._orderService                 = orderService;
 }