public PaystackApi(string apiKey) { _apiKey = apiKey; SubAccounts = new SubAccountApi(this); Transactions = new TransactionsApi(this); Customers = new CustomersApi(this); Miscellaneous = new MiscellaneousApi(this); Charge = new ChargeApi(this); _paystackApiBaseUrl = new Uri("https://api.paystack.co/"); }
public ChargeDomainService( ILogger <ChargeDomainService> logger, IOptionsMonitor <DailyTaskOptions> dailyTaskOptions, IDailyTaskApi dailyTaskApi, BiliCookie cookie, IChargeApi chargeApi ) { _logger = logger; _dailyTaskOptions = dailyTaskOptions.CurrentValue; _dailyTaskApi = dailyTaskApi; _cookie = cookie; _chargeApi = chargeApi; }