Exemple #1
0
        public ApiClientAsync(CheckoutConfiguration configuration, IApiHttpClient httpClient)
        {
            CheckoutConfiguration = configuration;
            ApiHttpClient         = httpClient;

            CardServiceAsync              = new CardServiceAsync(ApiHttpClient, CheckoutConfiguration);
            ChargeServiceAsync            = new ChargeServiceAsync(ApiHttpClient, CheckoutConfiguration);
            CustomerServiceAsync          = new CustomerServiceAsync(ApiHttpClient, CheckoutConfiguration);
            LookupsServiceAsync           = new LookupsServiceAsync(ApiHttpClient, CheckoutConfiguration);
            PayoutsServiceAsync           = new PayoutsServiceAsync(ApiHttpClient, CheckoutConfiguration);
            RecurringPaymentsServiceAsync = new RecurringPaymentsServiceAsync(ApiHttpClient, CheckoutConfiguration);
            ReportingServiceAsync         = new ReportingServiceAsync(ApiHttpClient, CheckoutConfiguration);
            TokenServiceAsync             = new TokenServiceAsync(ApiHttpClient, CheckoutConfiguration);

            ContentAdaptor.Setup();
        }
Exemple #2
0
 public TokenService(IApiHttpClient apiHttpclient, CheckoutConfiguration configuration)
 {
     _tokenServiceAsync = new TokenServiceAsync(apiHttpclient, configuration);
 }