Exemplo n.º 1
0
 public DefaultPaymentInfoFactory(
     DefaultPaymentHttpClient paymentApi,
     ICurrencyService currencyService,
     ILocalizationService localizationService,
     ILogger logger,
     IPaymentService paymentService,
     IShoppingCartService shoppingCartService,
     IOrderTotalCalculationService orderTotalCalculationService,
     IHttpContextAccessor httpContextAccessor,
     IStoreContext storeContext,
     IWorkContext workContext,
     CurrencySettings currencySettings,
     CryptoPaymentSettings cryptoPaymentSettings)
 {
     _paymentApi          = paymentApi;
     _currencyService     = currencyService;
     _localizationService = localizationService;
     _logger                       = logger;
     _currencySettings             = currencySettings;
     _paymentService               = paymentService;
     _shoppingCartService          = shoppingCartService;
     _workContext                  = workContext;
     _orderTotalCalculationService = orderTotalCalculationService;
     _httpContextAccessor          = httpContextAccessor;
     _storeContext                 = storeContext;
     _cryptoPaymentSettings        = cryptoPaymentSettings;
 }
Exemplo n.º 2
0
        public BaseHttpClient(CryptoPaymentSettings settings, HttpClient httpClient)
        {
            httpClient.BaseAddress = new Uri(Defaults.Api.BaseUrl);
            httpClient.Timeout     = TimeSpan.FromSeconds(Defaults.Api.DefaultTimeout);
            httpClient.DefaultRequestHeaders.Add(HeaderNames.UserAgent, Defaults.Api.UserAgent);
            httpClient.DefaultRequestHeaders.Add(HeaderNames.Authorization, $"Bearer {settings.SecretKey}");

            HttpClient = httpClient;
        }
Exemplo n.º 3
0
 public DefaultWebHookProcessor(
     CryptoPaymentSettings cryptoPaymentSettings,
     DefaultPaymentHttpClient paymentApi,
     IGenericAttributeService genericAttributeService,
     ILogger logger,
     IOrderService orderService,
     IOrderProcessingService orderProcessingService)
 {
     _cryptoPaymentSettings   = cryptoPaymentSettings;
     _paymentApi              = paymentApi;
     _genericAttributeService = genericAttributeService;
     _logger                 = logger;
     _orderService           = orderService;
     _orderProcessingService = orderProcessingService;
 }
 public DefaultCheckoutSdkScriptFactory(CryptoPaymentSettings cryptoPaymentSettings)
 {
     _cryptoPaymentSettings = cryptoPaymentSettings;
 }
 public DefaultRefundHttpClient(CryptoPaymentSettings settings, HttpClient httpClient)
     : base(settings, httpClient)
 {
 }