コード例 #1
0
 public CashOnDeliveryPaymentProcessor(CashOnDeliveryPaymentSettings cashOnDeliveryPaymentSettings,
                                       ISettingService settingService,
                                       IOrderTotalCalculationService orderTotalCalculationService,
                                       ILocalizationService localizationService)
 {
     this._cashOnDeliveryPaymentSettings = cashOnDeliveryPaymentSettings;
     this._settingService = settingService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._localizationService          = localizationService;
 }
コード例 #2
0
        public CashOnDeliveryPaymentProcessor(CashOnDeliveryPaymentSettings cashOnDeliveryPaymentSettings,
            ISettingService settingService,
			IOrderTotalCalculationService orderTotalCalculationService,
            ILocalizationService localizationService)
        {
            this._cashOnDeliveryPaymentSettings = cashOnDeliveryPaymentSettings;
            this._settingService = settingService;
			this._orderTotalCalculationService = orderTotalCalculationService;
            this._localizationService = localizationService;
        }
コード例 #3
0
        public override void Install()
        {
            var settings = new CashOnDeliveryPaymentSettings()
            {
                DescriptionText = "@Plugins.Payment.CashOnDelivery.PaymentInfoDescription"
            };

            _settingService.SaveSetting(settings);

            _localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }
コード例 #4
0
        public override void Install()
        {
            var settings = new CashOnDeliveryPaymentSettings()
            {
                DescriptionText = "@Plugins.Payment.CashOnDelivery.PaymentInfoDescription"
            };
            _settingService.SaveSetting(settings);

            _localizationService.ImportPluginResourcesFromXml(this.PluginDescriptor);

            base.Install();
        }