public XenditClient(string apiKey) { if (string.IsNullOrWhiteSpace(apiKey)) { throw new ArgumentNullException(nameof(apiKey)); } Configuration = new XenditConfiguration { ApiKey = apiKey }; BaseUrl = Configuration.BaseUrl; var connection = new XenditHttpConnection(Configuration); SecurityVerificator = new XenditSecurityVerificator(Configuration); VirtualAccount = new XenditVAClient(connection); Invoice = new XenditInvoiceClient(connection); Disbursement = new XenditDisbursementClient(connection); EWallet = new XenditEWalletClient(connection); }
public XenditHttpConnection(XenditConfiguration config) { _config = config; }