public SezzleHttpClient(HttpClient client,
                                SezzlePaymentSettings sezzlePaymentSettings,
                                CurrencySettings currencySettings,
                                ICurrencyService currencyService,
                                IWebHelper webHelper,
                                IGenericAttributeService genericAttributeService,
                                IAddressService addressService,
                                IOrderService orderService,
                                IProductService productService,
                                IStateProvinceService stateProvinceService,
                                ICountryService countryService)
        {
            //configure client
            client.Timeout = TimeSpan.FromMilliseconds(5000);
            client.DefaultRequestHeaders.Add(HeaderNames.Accept, MimeTypes.ApplicationJson);

            _httpClient              = client;
            _sezzlePaymentSettings   = sezzlePaymentSettings;
            _currencySettings        = currencySettings;
            _currencyService         = currencyService;
            _webHelper               = webHelper;
            _genericAttributeService = genericAttributeService;
            _addressService          = addressService;
            _orderService            = orderService;
            _productService          = productService;
            _stateProvinceService    = stateProvinceService;
            _countryService          = countryService;
        }
 public PaymentSezzleController(IGenericAttributeService genericAttributeService,
                                IOrderProcessingService orderProcessingService,
                                IOrderService orderService,
                                IPaymentPluginManager paymentPluginManager,
                                IPermissionService permissionService,
                                ILocalizationService localizationService,
                                ILogger logger,
                                INotificationService notificationService,
                                ISettingService settingService,
                                IStoreContext storeContext,
                                IWebHelper webHelper,
                                IWorkContext workContext,
                                ShoppingCartSettings shoppingCartSettings,
                                SezzlePaymentSettings sezzlePaymentSettings,
                                SezzleHttpClient sezzleHttpClient)
 {
     _genericAttributeService = genericAttributeService;
     _orderProcessingService  = orderProcessingService;
     _orderService            = orderService;
     _paymentPluginManager    = paymentPluginManager;
     _permissionService       = permissionService;
     _localizationService     = localizationService;
     _logger = logger;
     _notificationService   = notificationService;
     _settingService        = settingService;
     _storeContext          = storeContext;
     _webHelper             = webHelper;
     _workContext           = workContext;
     _shoppingCartSettings  = shoppingCartSettings;
     _sezzlePaymentSettings = sezzlePaymentSettings;
     _sezzleHttpClient      = sezzleHttpClient;
 }
Example #3
0
        public SezzleHttpClient(HttpClient client,
                                SezzlePaymentSettings sezzlePaymentSettings,
                                CurrencySettings currencySettings,
                                ICurrencyService currencyService,
                                IWebHelper webHelper,
                                IGenericAttributeService genericAttributeService)
        {
            //configure client
            client.Timeout = TimeSpan.FromMilliseconds(5000);
            client.DefaultRequestHeaders.Add(HeaderNames.Accept, MimeTypes.ApplicationJson);

            _httpClient              = client;
            _sezzlePaymentSettings   = sezzlePaymentSettings;
            _currencySettings        = currencySettings;
            _currencyService         = currencyService;
            _webHelper               = webHelper;
            _genericAttributeService = genericAttributeService;
        }