Skip to main content

Overview

The Bank class provides methods to retrieve information about banks that can be charged on the Flutterwave platform. This is essential for implementing direct debit and bank account payment flows.

Class: Bank

Method: getAllBanks()

Retrieves a comprehensive list of banks that can be charged on Flutterwave. Returns: JsonNode Response Details:
  • Returns a JsonNode containing bank information
  • Each bank includes an internetbanking key/value pair:
    • false: Account can be charged using the direct account method
    • true: Account must be charged using the internet banking flow
The internetbanking field in the response indicates which charging method should be used for each bank.

Usage Example

Configuration

Before using the Bank class, ensure you’ve set the appropriate environment:
No authentication keys are required for retrieving the bank list, as this is public information.

Use Cases

  • Populate bank selection dropdowns in your payment forms
  • Determine the appropriate charging method for a specific bank
  • Validate bank codes before initiating payments
  • Display available banks to users during account setup

Next Steps

Account Payments

Learn how to charge bank accounts

Alternative Payments

Explore alternative payment methods