Download the PHP package phelix/flutterwave without Composer
On this page you can find all versions of the php package phelix/flutterwave. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phelix/flutterwave
More information about phelix/flutterwave
Files in phelix/flutterwave
Package flutterwave
Short Description An encapsulation of the Flutterwave Payment APIs
License Apache-2.0
Informations about the package flutterwave
Flutterwave SDK by Phelix Juma
This is a PHP SDK wrapper for Flutterwave.
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
- PHP >= 7.1
- ext-json
- ext-openssl
- ext-mbstring
- ext-openssl
- ext-iconv
- ext-curl
- guzzlehttp/guzzle: "^7.1"
Installation
composer require phelix/flutterwave
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
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
This SDK version does not include the services not listed in the "Included Services" section.
1. Accounts
Handling account balances
1. One Time PIN (OTPs)
Use this where you're using flutterwave to generate and validate your OTPs
3. Payment Plan
Use this to handle payment plans
4. Settlement
This is used when handling settlements between the merchant and dlutterwave
5. Standard Integration
Use this for Flutterwave standard integration. Use this in the section where you initiate payment. Check here for more details.
6. IPN (Payment Verification)
Use this in your IPN (the redirect url set when initiating payment)
7. Subscription
Use this for subscriptions
6. Responses and Error codes
All responses and error codes are similar to the ones from Flutterwave. Check here for details on error codes
Generally, all/most responses follow the standard stucture shown below
In some cases, meta details are also included eg when getting list of items as shown below:
Credits
- Phelix Juma from Kuza Lab Ltd ([email protected])
All versions of flutterwave with dependencies
ext-openssl Version *
ext-iconv Version *
ext-curl Version *
guzzlehttp/guzzle Version ~6.0