Concepts
This guide will walk you through the steps needed to transfer funds using Flutterwave’s API with Go. You’ll learn how to:- Set up your server app: Create a Go project and install the required dependencies.
- Get bank code: Retrieve a list of bank codes from Flutterwave’s API for initiating transactions.
- Get Account Details: Use a bank code to fetch and confirm bank account details.
- Initiate a transfer: Send money to the resolved bank account via Flutterwave.
- Fetch the transfer: Retrieve the status of a transfer to ensure it was processed.
- Verify a transaction is valid: Confirm the authenticity of a transaction using Flutterwave’s verification endpoint.
Step 1: Setting up your Server App
To initiate a transfer successfully, you need to whitelist your current IP address. Here is a quick guide on how to do that.You can also use the universal address
0.0.0.0 to allow transfers from all
IP addresses. However, this method offers less control compared to
specifying a list of acceptable IP addresses.Installing your Dependencies
Next, install the required dependency.Configuring your Environment
Log into your Flutterwave dashboard to get your API keys and add the keys to your.env file.
Create the Project Entry Point
Create amain.go file in the root directory and initialize the project entry point.