public async Task <IActionResult> QueryAccountName([FromServices] IBanksProvider provider, string bankCode, string accountNumber) { var request = new BankAccountNameQueryRequest(); request.Initialize(new Dictionary <string, string> { [PAYSTACK_BANK_ACCOUNT_NUMBER_KEY] = accountNumber, [PAYSTACK_BANK_REFERENCE_KEY] = bankCode }); var response = await provider.QueryAccountName(request); return(Json(response)); }
public async Task <IActionResult> GetBanks([FromServices] IBanksProvider provider) { var response = await provider.GetBanks(); return(Json(response)); }