PHPackages                             phelix/flutterwave - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. phelix/flutterwave

ActivePackage[Payment Processing](/categories/payments)

phelix/flutterwave
==================

An encapsulation of the Flutterwave Payment APIs

v1.0.1(5y ago)07Apache-2.0PHP

Since Nov 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kuza-lab/flutterwave)[ Packagist](https://packagist.org/packages/phelix/flutterwave)[ RSS](/packages/phelix-flutterwave/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

Flutterwave SDK by Phelix Juma
==============================

[](#flutterwave-sdk-by-phelix-juma)

This is a PHP SDK wrapper for Flutterwave.

1. [Get started](https://developer.flutterwave.com/docs/getting-started-1)
2. [API Reference](https://developer.flutterwave.com/reference)

Included Services
=================

[](#included-services)

- Account
    - Get balances for all your accounts
    - Get balance for a specific account
- OTP
    - Create (and optionally send) an OTP
    - Validate an OTP
- Payment Plan
    - Create a payment plan
    - Get all your plans
    - Get a specific plan
    - Update a plan
    - Cancel a plan
- Settlement
    - Get all settlement records
    - Get a specific settlement record
- Standard Payment Integration
    - Initiate a one time payment
    - Initiate a recurring payment (involves subscribing the payer to a payment plan)
- Subscriptions
    - Get list of all subscriptions
    - Get all subscriptions for a plan
    - Get all subscriptions by a user
    - Get a user's subscription in a plan
    - Get a specific subscription
    - Cancel a subscription
    - Activate a subscription
- Verification
    - Verifying a transaction

Requirements
============

[](#requirements)

- PHP &gt;= 7.1
- ext-json
- ext-openssl
- ext-mbstring
- ext-openssl
- ext-iconv
- ext-curl
- guzzlehttp/guzzle: "^7.1"

Installation
============

[](#installation)

```
composer require phelix/flutterwave

```

How To test
===========

[](#how-to-test)

To test the package, copy the file "LoadEnv.php.example" in src/tests directory to "LoadEnv.php" and fill in the configuration values required and then run the following command

```
vendor/bin/phpunit test

```

Documentation
=============

[](#documentation)

The docs folder has the technical documentation of each of the classes,methods, properties, namespaces et al. In order for you to make references to know what a class does or what a function does or what each of the method parameters mean, then the docs have an elaborate description for each of them.

This being a wrapper for the Flutterwave APIs, you can get more details especially of the expected data structure from [Flutterwave API Reference page](https://developer.flutterwave.com/reference)

This SDK version does not include the services not listed in the "Included Services" section.

1. Accounts
-----------

[](#1-accounts)

Handling account balances

```
