public PaymentSquareViewComponent(CurrencySettings currencySettings, ICountryService countryService, ICurrencyService currencyService, ICustomerService customerService, IGenericAttributeService genericAttributeService, ILocalizationService localizationService, IOrderTotalCalculationService orderTotalCalculationService, IShoppingCartService shoppingCartService, IStateProvinceService stateProvinceService, IStoreContext storeContext, IWorkContext workContext, SquarePaymentManager squarePaymentManager, SquarePaymentSettings squarePaymentSettings) { _currencySettings = currencySettings; _countryService = countryService; _currencyService = currencyService; _customerService = customerService; _genericAttributeService = genericAttributeService; _localizationService = localizationService; _orderTotalCalculationService = orderTotalCalculationService; _shoppingCartService = shoppingCartService; _stateProvinceService = stateProvinceService; _storeContext = storeContext; _workContext = workContext; _squarePaymentManager = squarePaymentManager; _squarePaymentSettings = squarePaymentSettings; }
public SquarePaymentManager(ILogger logger, IWorkContext workContext, SquarePaymentSettings squarePaymentSettings) { this._logger = logger; this._workContext = workContext; this._squarePaymentSettings = squarePaymentSettings; }
public EventConsumer(ILocalizationService localizationService, IPaymentPluginManager paymentPluginManager, IScheduleTaskService scheduleTaskService, SquarePaymentSettings squarePaymentSettings) { _localizationService = localizationService; _paymentPluginManager = paymentPluginManager; _scheduleTaskService = scheduleTaskService; _squarePaymentSettings = squarePaymentSettings; }
public SquarePaymentManager(ILogger logger, IWorkContext workContext, SquareAuthorizationHttpClient squareAuthorizationHttpClient, SquarePaymentSettings squarePaymentSettings) { _logger = logger; _workContext = workContext; _squareAuthorizationHttpClient = squareAuthorizationHttpClient; _squarePaymentSettings = squarePaymentSettings; }
public PaymentSquareController(ILocalizationService localizationService, IPermissionService permissionService, ISettingService settingService, SquarePaymentManager squarePaymentManager, SquarePaymentSettings squarePaymentSettings) { this._localizationService = localizationService; this._permissionService = permissionService; this._settingService = settingService; this._squarePaymentManager = squarePaymentManager; this._squarePaymentSettings = squarePaymentSettings; }
public SquareAuthorizationHttpClient(HttpClient client, SquarePaymentSettings squarePaymentSettings) { //configure client client.BaseAddress = new Uri("https://connect.squareup.com/oauth2/"); client.Timeout = TimeSpan.FromMilliseconds(5000); client.DefaultRequestHeaders.Add(HeaderNames.Authorization, $"Client {squarePaymentSettings.ApplicationSecret}"); client.DefaultRequestHeaders.Add(HeaderNames.UserAgent, SquarePaymentDefaults.UserAgent); client.DefaultRequestHeaders.Add(HeaderNames.Accept, MimeTypes.ApplicationJson); _httpClient = client; _squarePaymentSettings = squarePaymentSettings; }
public RenewAccessTokenTask(ILocalizationService localizationService, ILogger logger, IPaymentPluginManager paymentPluginManager, ISettingService settingService, SquarePaymentManager squarePaymentManager, SquarePaymentSettings squarePaymentSettings) { _localizationService = localizationService; _logger = logger; _paymentPluginManager = paymentPluginManager; _settingService = settingService; _squarePaymentManager = squarePaymentManager; _squarePaymentSettings = squarePaymentSettings; }
public PaymentSquareController(ILocalizationService localizationService, INotificationService notificationService, IPermissionService permissionService, ISettingService settingService, SquarePaymentManager squarePaymentManager, SquarePaymentSettings squarePaymentSettings) { _localizationService = localizationService; _notificationService = notificationService; _permissionService = permissionService; _settingService = settingService; _squarePaymentManager = squarePaymentManager; _squarePaymentSettings = squarePaymentSettings; }
public RenewAccessTokenTask(ILocalizationService localizationService, ILogger logger, IPaymentService paymentService, ISettingService settingService, SquarePaymentManager squarePaymentManager, SquarePaymentSettings squarePaymentSettings) { this._localizationService = localizationService; this._logger = logger; this._paymentService = paymentService; this._settingService = settingService; this._squarePaymentManager = squarePaymentManager; this._squarePaymentSettings = squarePaymentSettings; }