コード例 #1
0
        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);
        }
コード例 #2
0
 public XenditHttpConnection(XenditConfiguration config)
 {
     _config = config;
 }