예제 #1
0
        //This method gets the user paystack balance
        public async Task <BalanceResponseModel> GetBalance()
        {
            //pass url to get user paystack balance
            string url    = $"{_configuration["PaystackEndPoints:baseUrl"]}" + $"{_configuration["PaystackEndPoints:Balance"]}";
            var    result = await _requestClient.GetRequestAsync <BalanceResponseModel>(url);

            return(result);
        }
예제 #2
0
        //This methods list all recipents added to the account on paystack
        public async Task <RecipentListResponseModel> GetAllRecipents()
        {
            string url    = $"{_configuration["PaystackEndPoints:baseUrl"]}" + $"{_configuration["PaystackEndPoints:ListTransferRecipents"]}";
            var    result = await _requestClient.GetRequestAsync <RecipentListResponseModel>(url);

            return(result);
        }