Introduction

Welcome👋🏽, This section contains relevant information you need to use the APIs.

We wrote this reference assuming you are familiar with APIs and can make API calls. If you are new to the concept of APIs, You should check out our API basics article.

Before you start making the API calls, here are some things to do:

  1. Get your API keys.
  2. Decide your integration method. We support the following integration methods:
Using SDK Integrations

If you decide to use the SDKs, You should read the full developer docs for them on Github.

To help you get started with the examples in the references, please follow these steps.

// Install with: npm i flutterwave-node-v3

// Add Flutterwave as a dependency to your project
const Flutterwave = require('flutterwave-node-v3');

// Initialize with your API keys
const flw = new Flutterwave(process.env.FLW_PUBLIC_KEY, process.env.FLW_SECRET_KEY);

// Add your payload details
const details = {
    ... 
};
// Install with: composer require flutterwavedev/flutterwave-v3

// Add Flutterwave as a dependency to your project
require("Flutterwave-PHP-v3/library/CardPayment.php");

use Flutterwave\Card;

// Add your payload details
$details = array(
    ...
);
# Install with: gem install flutterwave_sdk

# Add Flutterwave as a dependency to your project
require 'flutterwave_sdk'

# Initialize with your API keys
flw = Flutterwave.new(ENV["FLW_PUBLIC_KEY"], ENV["FLW_SECRET_KEY"], ENV["FLW_ENCRYPTION_KEY"])

transfer = Transfer.new(flw)

# Add your payload details
details = {
    ...
}
# Install with: pip install rave_python

import os

# Import Flutterwave into your Project
from rave_python import Rave

# Initialize with your API keys
rave = Rave(os.getenv("FLW_PUBLIC_KEY"), os.getenv("FLW_SECRET_KEY"))

# Add your payload details
details = {
    ...
}
// Install with: go get github.com/Flutterwave/Rave-go/rave

// Import Flutterwave into your Project
import (
  "fmt"
  "os"
  "github.com/Flutterwave/Rave-go/rave"
)

// Initialize with your API keys
var r = rave.Rave{
  false,
  os.Getenv("FLW_PUBLIC_KEY"),
  os.Getenv("FLW_SECRET_KEY"),
}

var transfer = rave.Transfer{
    r,
}

// Add your payload details
details := rave.SinglePaymentData {
    ...
}

We have compiled a couple of best practices for using our APIs. You can read them here

Just getting started? Checkout our Quickstart for Developers.

Loading...