Example #1
0
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
                               ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._manualPaymentSettings        = manualPaymentSettings;
     this._settingService               = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
     ISettingService settingService, IOrderTotalCalculationService orderTotalCalculationService)
 {
     this._manualPaymentSettings = manualPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
 }
        /// <summary>
        /// Install the plugin
        /// </summary>
        public override void Install()
        {
            //settings
            var settings = new ManualPaymentSettings
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            //locales
            _localizationService.AddPluginLocaleResource(new Dictionary <string, string>
            {
                ["Plugins.Payments.Manual.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.",
                ["Plugins.Payments.Manual.Fields.AdditionalFee"]                = "Additional fee",
                ["Plugins.Payments.Manual.Fields.AdditionalFee.Hint"]           = "Enter additional fee to charge your customers.",
                ["Plugins.Payments.Manual.Fields.AdditionalFeePercentage"]      = "Additional fee. Use percentage",
                ["Plugins.Payments.Manual.Fields.AdditionalFeePercentage.Hint"] = "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.",
                ["Plugins.Payments.Manual.Fields.TransactMode"]                 = "After checkout mark payment as",
                ["Plugins.Payments.Manual.Fields.TransactMode.Hint"]            = "Specify transaction mode.",
                ["Plugins.Payments.Manual.PaymentMethodDescription"]            = "Pay by credit / debit card"
            });

            base.Install();
        }
Example #4
0
 public ManualPaymentProcessor(ILocalizationService localizationService,
                               IOrderTotalCalculationService orderTotalCalculationService,
                               ISettingService settingService,
                               ManualPaymentSettings manualPaymentSettings)
 {
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService        = settingService;
     this._manualPaymentSettings = manualPaymentSettings;
 }
        public override void Install()
        {
            var settings = new ManualPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            base.Install();
        }
 public ManualPaymentProcessor(ILocalizationService localizationService,
                               IPaymentService paymentService,
                               ISettingService settingService,
                               IWebHelper webHelper,
                               ManualPaymentSettings manualPaymentSettings)
 {
     _localizationService   = localizationService;
     _paymentService        = paymentService;
     _settingService        = settingService;
     _webHelper             = webHelper;
     _manualPaymentSettings = manualPaymentSettings;
 }
 public ManualPaymentProcessor(ILocalizationService localizationService,
                               IOrderTotalCalculationService orderTotalCalculationService,
                               ISettingService settingService,
                               IWebHelper webHelper,
                               ManualPaymentSettings manualPaymentSettings)
 {
     _localizationService          = localizationService;
     _orderTotalCalculationService = orderTotalCalculationService;
     _settingService        = settingService;
     _webHelper             = webHelper;
     _manualPaymentSettings = manualPaymentSettings;
 }
Example #8
0
        public override void Install()
        {
            //settings
            var settings = new ManualPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode", "After checkout mark payment as");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode.Hint", "Specify transaction mode.");


            base.Install();
        }
Example #9
0
        public override void Install()
        {
            //settings
            var settings = new ManualPaymentSettings
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode", "After checkout mark payment as");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode.Hint", "Specify transaction mode.");


            base.Install();
        }
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
     ISettingService settingService)
 {
     this._manualPaymentSettings = manualPaymentSettings;
     this._settingService = settingService;
 }
        public override void Install()
        {
            var settings = new ManualPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };
            _settingService.SaveSetting(settings);

            base.Install();
        }
        public override void Install()
        {
            //settings
            var settings = new ManualPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFeePercentage", "Additional fee. Use percentage");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFeePercentage.Hint", "Determines whether to apply a percentage additional fee to the order total. If not enabled, a fixed value is used.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode", "After checkout mark payment as");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode.Hint", "Specify transaction mode.");
            

            base.Install();
        }
Example #13
0
 public ManualPaymentProcessor(ManualPaymentSettings manualPaymentSettings,
                               ISettingService settingService)
 {
     this._manualPaymentSettings = manualPaymentSettings;
     this._settingService        = settingService;
 }
        public override void Install()
        {
            //settings
            var settings = new ManualPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };
            _settingService.SaveSetting(settings);

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee", "Additional fee");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.AdditionalFee.Hint", "Enter additional fee to charge your customers.");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode", "After checkout mark payment as");
            this.AddOrUpdatePluginLocaleResource("Plugins.Payments.Manual.Fields.TransactMode.Hint", "Specify transaction mode.");

            base.Install();
        }