Skip to content

Egahi/flutterwave-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET Library for Flutterwave (version 3) APIs

This library makes it easy to consume Flutterwave API (v3) in .Net projects.

Introduction

This library implements the following services:

  1. Banks
    • Get bank branches
    • Get banks
  2. Miscellaneous
    • Verify a bank account number
  3. Payments
    • Cancel a payment plan
    • Create a payment plan
    • Get a payment plan
    • Get payment plans
    • Initiate payment
    • Update a payment plan
  4. Sub accounts
    • Create a sub account
    • Delete a sub account
    • Fetch a sub account
    • Fetch all sub accounts
    • Update a sub account
  5. Transactions
    • Get transaction fees
    • Get transactions
    • Resend transaction webhook
    • Verify a transaction
    • View transaction timeline

Installation

  • From Nuget
    Install-Package Flutterwave.Net -Version 1.0.0
  • From .NET CLI
    dotnet add package Flutterwave.Net --version 1.0.0
  • As a package reference
    <PackageReference Include="Flutterwave.Net" Version="1.0.0" />

Configuration

  1. Include the Flutterwave.Net namespace to expose all types
    ...
    using Flutterwave.Net;
    ...
  2. Declare and initialise the FlutterwaveAPI class with your secret key
    string flutterwaveSecretKey = ConfigurationManager.AppSettings["FlutterwaveSecretKey"];
    var api = new FlutterwaveApi(flutterwaveSecretKey);

Usage

View code snippets on how to call each api endpoint in the docs linked below.

  1. Banks
  2. Miscellaneous
  3. Payments
  4. Sub Accounts
  5. Transactions

Support

Create a new issue or add a comment to an open issue to request for new features and/or report bugs

Send a mail for further assistance using this library