Exemplo n.º 1
0
 public TBCBankCardPaymentProcessor(CurrencySettings currencySettings,
                                    HttpContextBase httpContext,
                                    ICheckoutAttributeParser checkoutAttributeParser,
                                    ICurrencyService currencyService,
                                    IGenericAttributeService genericAttributeService,
                                    ILocalizationService localizationService,
                                    IOrderTotalCalculationService orderTotalCalculationService,
                                    ISettingService settingService,
                                    ITaxService taxService,
                                    IWebHelper webHelper,
                                    ILogger logger,
                                    IWorkContext workContext,
                                    TBCBankCardSettings tbcPaymentSettings,
                                    IScheduleTaskService scheduleTaskService,
                                    IOrderService orderService
                                    )
 {
     this._currencySettings             = currencySettings;
     this._httpContext                  = httpContext;
     this._checkoutAttributeParser      = checkoutAttributeParser;
     this._currencyService              = currencyService;
     this._genericAttributeService      = genericAttributeService;
     this._localizationService          = localizationService;
     this._orderTotalCalculationService = orderTotalCalculationService;
     this._settingService               = settingService;
     this._taxService          = taxService;
     this._webHelper           = webHelper;
     this._logger              = logger;
     this._workContext         = workContext;
     this._TbcPaymentSettings  = tbcPaymentSettings;
     this._scheduleTaskService = scheduleTaskService;
     this._orderService        = orderService;
 }
Exemplo n.º 2
0
        public override void Install()
        {
            //settings
            var settings = new TBCBankCardSettings();

            _settingService.SaveSetting(settings);

            _scheduleTaskService.InsertTask(new Core.Domain.Tasks.ScheduleTask()
            {
                Enabled     = false,
                Name        = "TBC Bank Close day task",
                Seconds     = 86400,
                StopOnError = false,
                Type        = "Nop.Plugin.Payments.TBCBankCard.CloseDayTask, Nop.Plugin.Payments.TBCBankCard"
            });

            base.Install();
        }
Exemplo n.º 3
0
 public CloseDayTask(ILogger logger,
                     IWorkContext workContext,
                     IStoreContext storeContext,
                     IStoreService storeService,
                     ISettingService settingService,
                     ICacheManager cacheManager,
                     ILocalizationService localizationService,
                     IProductService productService,
                     IProductTagService productTagService,
                     TBCBankCardSettings tbcPaymentSettings
                     )
 {
     this._logger              = logger;
     this._workContext         = workContext;
     this._storeContext        = storeContext;
     this._storeService        = storeService;
     this._settingService      = settingService;
     this._cacheManager        = cacheManager;
     this._localizationService = localizationService;
     this._productService      = productService;
     this._productTagService   = productTagService;
     this._TbcPaymentSettings  = tbcPaymentSettings;
 }