public KuveytTurkPaymentProcessor(CurrencySettings currencySettings,
                                   ICurrencyService currencyService,
                                   IHttpContextAccessor httpContextAccessor,
                                   ILocalizationService localizationService,
                                   IPaymentService paymentService,
                                   ISettingService settingService,
                                   IWebHelper webHelper,
                                   IEncryptionService encryptionService,
                                   ICustomerService customerService,
                                   IWebHostEnvironment webHostEnvironment,
                                   INopFileProvider nopFileProvider,
                                   KuveytTurkService kuveytTurkService,
                                   KuveytTurkPaymentSettings twoCheckoutPaymentSettings)
 {
     _currencySettings          = currencySettings;
     _currencyService           = currencyService;
     _httpContextAccessor       = httpContextAccessor;
     _localizationService       = localizationService;
     _paymentService            = paymentService;
     _settingService            = settingService;
     _webHelper                 = webHelper;
     _encryptionService         = encryptionService;
     _customerService           = customerService;
     _webHostEnvironment        = webHostEnvironment;
     _nopFileProvider           = nopFileProvider;
     _kuveytTurkService         = kuveytTurkService;
     _kuveytTurkPaymentSettings = twoCheckoutPaymentSettings;
 }
Ejemplo n.º 2
0
        public override void Install()
        {
            var settings = new KuveytTurkPaymentSettings()
            {
                TransactMode = TransactMode.Pending
            };

            _settingService.SaveSetting(settings);

            base.Install();
        }
Ejemplo n.º 3
0
 public KuveytTurkPaymentProcessor(KuveytTurkPaymentSettings KuveytTurkPaymentSettings,
                                   ISettingService settingService, ICurrencyService currencyService,
                                   CurrencySettings currencySettings, IWebHelper webHelper,
                                   StoreInformationSettings storeInformationSettings,
                                   ILocalizationService localizationService,
                                   ICustomerService customerService)
 {
     this._KuveytTurkPaymentSettings = KuveytTurkPaymentSettings;
     this._settingService            = settingService;
     this._currencyService           = currencyService;
     this._currencySettings          = currencySettings;
     this._webHelper = webHelper;
     this._storeInformationSettings = storeInformationSettings;
     this._localizationService      = localizationService;
     this._customerService          = customerService;
 }