Download the PHP package rutatiina/flutterwave-v3 without Composer
On this page you can find all versions of the php package rutatiina/flutterwave-v3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rutatiina/flutterwave-v3
More information about rutatiina/flutterwave-v3
Files in rutatiina/flutterwave-v3
Package flutterwave-v3
Short Description A simple SDK for integrating to Flutterwave's Rave payment
License MIT
Homepage https://github.com/rutatiina/Flutterwave-PHP-v3
Informations about the package flutterwave-v3
Flutterwave v3 PHP SDK
Use this library to integrate your PHP app to Rave.
Table of Contents
- Getting Started
- Usage
- Running tests
- Deployment
- Built Using
- References
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
See references for links to dashboard and API documentation.
Edit the paymentForm.php
and processPayment.php
files to suit your purpose. Both files are well documented.
Simply redirect to the paymentForm.php
file on your browser to process a payment.
Installing
The vendor folder is committed into the project to allow easy installation for those who do not have composer installed. It is recommended to update the project dependencies using:
Setting Up Environment Variables
Create a .env file and follow the format of the .env.example file Save your PUBLIC_KEY, SECRET_KEY, ENV in the .env file
Usage
In this implementation, we are expecting a form encoded POST request to this script. The request will contain the following parameters.
- payment_method
Can be card, account, both
- description
Your transaction description
- logo
Your logo url
- title
Your transaction title
- country
Your transaction country
- currency
Your transaction currency
- email
Your customer's email
- firstname
Your customer's first name
- lastname
Your customer's last name
- phonenumber
Your customer's phonenumber
- pay_button_text
The payment button text you prefer
- ref
Your transaction reference. It must be unique per transaction. By default, the Rave class generates a unique transaction reference for each transaction. Pass this parameter only if you uncommented the related section in the script below.
Account Charge
The following implementation shows how to initiate a direct bank charge. Use the Playground DIrectory to view Responses and samples of use.
ACH Charge
The following implementation shows how to accept payments directly from customers in the US and South Africa. Use the Playground DIrectory to view Responses and samples of use.
Card Charge
The following implementation shows how to initiate a card charge. Use the Playground Directory to view an implementation Responses and samples of use.
Mobile Money Payments
The following implementation shows how to initiate a mobile money payment. Use the Playground Directory to view Responses and samples of use.
USSD
Collect payments via ussd
Mpesa
Collect payments from your customers via Mpesa.
Transfer Implementation
How to make a transfer payment
Vitual Cards
The following implementation shows how to create virtual cards on rave. Use the Playground Directory to view Responses and samples of use.
BVN Verification
The following implementation shows how to verify a Bank Verification Number.
Payment Plans
The following implementation shows how to create a payment plan on the rave dashboard. Use the Playground Directory to view Responses and samples of use.
Subaccount Management
The following implementation shows how to create a subaccount on the rave dashboard Use the Playground Directory to view Responses and samples of use.
Transfer Recipient
The following implementation shows how to create a transfer recipient on the rave dashboard. Use the Playground Directory to view Responses and samples of use.
Subscriptions
The following implementation shows how to activate a subscription, fetch a subscription, get all subscriptions.
Bills
The following implementation shows how to pay for any kind of bill from Airtime to DSTv payments to Tolls. Please view the rave documentation section on Bill payment for different types of bill services you can pass into the method as an.
visit: https://developer.flutterwave.com/v3.0/reference#buy-airtime-bill
Ebills
The following implementation shows how to create a electronic receipt.
Virtual Accounts
The following implementation shows how to create a virtual Account. Please view the documentation for more options that can be added in the payload https://developer.flutterwave.com/reference#create-a-virtual-account-number
Tokenized Charge
Once the charge and validation leg is complete for the first charge on the card, you can make use of the token for subsequent charges.
view Transactions
list all transactions on your account. You could do a specific query using or to make specifc search. View all successfull or failed transactions for a particular period, month or year. Please read the MISCELLANEOUS section of the Api documentation for more option to pass. https://developer.flutterwave.com/reference#list-transactions
Voucher payment
Collect ZAR payments offline using Vouchers
You can also find the class documentation in the docs folder. There you will find documentation for the Rave
class and the EventHandlerInterface
.
Deployment
- Switch to Live Mode on the Dashboard settings page
- Use the Live Public API key
Built Using
- PHP
Flutterwave API References
All versions of flutterwave-v3 with dependencies
monolog/monolog Version ^2.0
mashape/unirest-php Version ^3.0
vlucas/phpdotenv Version ^2.5 || ^3.0 || ^4.0 || ^5.0