Esempio n. 1
0
 public OnBoardingController(IWorkContext workContext,
                             IOnBoardingService onBoardingService,
                             ILogger logger,
                             ILocalizationService localizationService,
                             ICustomerEntityService customerEntityService,
                             IAccountService accountService
                             )
 {
     _workContext           = workContext;
     _onBoardingService     = onBoardingService;
     _logger                = logger;
     _localizationService   = localizationService;
     _customerEntityService = customerEntityService;
     _accountService        = accountService;
 }
Esempio n. 2
0
 public AccountService(IWorkContext workContext,
                       ILogger logger,
                       StripeConnectPaymentSettings stripeConnectPaymentSettings,
                       IWebHelper webHelper,
                       HttpClient httpClient,
                       ICustomerEntityService customerEntityService)
 {
     _workContext = workContext;
     _logger      = logger;
     _stripeConnectPaymentSettings = stripeConnectPaymentSettings;
     _webHelper             = webHelper;
     _httpClient            = httpClient;
     _customerEntityService = customerEntityService;
     _stripeAccountService  = new StripeAccountService(_stripeConnectPaymentSettings.SecretKey);
 }
        public OnBoardingService(IWorkContext workContext,
                                 ILogger logger,
                                 StripeConnectPaymentSettings stripeConnectPaymentSettings,
                                 IWebHelper webHelper,

                                 HttpClient httpClient,
                                 ICustomerEntityService customerEntityService)
        {
            _workContext = workContext;
            _logger      = logger;
            _stripeConnectPaymentSettings = stripeConnectPaymentSettings;
            _webHelper               = webHelper;
            _httpClient              = httpClient;
            _customerEntityService   = customerEntityService;
            _onboardingCustomers     = new ConcurrentDictionary <string, int>();
            _stripeOAuthTokenService = new StripeOAuthTokenService(_stripeConnectPaymentSettings.SecretKey);
        }
Esempio n. 4
0
        public ChargeService(IWorkContext workContext,
                             ILogger logger,
                             StripeConnectPaymentSettings stripeConnectPaymentSettings,
                             IWebHelper webHelper,

                             HttpClient httpClient,
                             ICustomerEntityService customerEntityService,
                             IOrderChargeEntityService orderChargeEntityService)
        {
            _workContext = workContext;
            _logger      = logger;
            _stripeConnectPaymentSettings = stripeConnectPaymentSettings;
            _webHelper                = webHelper;
            _httpClient               = httpClient;
            _customerEntityService    = customerEntityService;
            _orderChargeEntityService = orderChargeEntityService;
            _stripeChargeService      = new StripeChargeService(_stripeConnectPaymentSettings.SecretKey);
            _stripetokenservice       = new StripeTokenService(_stripeConnectPaymentSettings.SecretKey);
        }