Download the PHP package abraham-flutterwave/laravel-payment without Composer
On this page you can find all versions of the php package abraham-flutterwave/laravel-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abraham-flutterwave/laravel-payment
More information about abraham-flutterwave/laravel-payment
Files in abraham-flutterwave/laravel-payment
Package laravel-payment
Short Description The Official Flutterwave Package for Laravel.
License MIT
Informations about the package laravel-payment
Flutterwave Laravel.
This Flutterwave Laravel Package provides easy access to Flutterwave for Business (F4B) v3 APIs from Laravel apps. It abstracts the complexity involved in direct integration and allows you to make quick calls to the APIs.
Available features include:
- Collections: Card, Account, Mobile money, Bank Transfers, USSD, Barter, NQR.
Table of Contents
- Requirements
- Installation
- Initialization
- Usage
- Testing
- Debugging Errors
- Support
- Contribution guidelines
- License
- Changelog
Requirements
- Flutterwave for business API Keys
- Acceptable PHP versions: >= 7.3
Installation
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:
Ensure that you publish your config file by running:
Initialization
In your .env file add the following environment variables:
Business Settings/preferences like logo, name, payment method can be set in the config file config/flutterwave.php
Usage
Render Payment Modal
There are two types of modal that can be rendered, the inline modal and the standard modal. The inline modal is rendered on your website while the standard modal is rendered on a flutterwave hosted page.
Inline Modal
Standard Modal
Logging
To enable logging, simple add the following to your config file config/logging.php
Webhook Setup
Create a Webhook url to receive payment notification on Payment events. Below is a sample of a webhook url implementation using the new package.
Testing
All of the SDK's tests are written with PHP's module. The tests currently test: , , ,
They can be run like so:
NOTE: If the test fails for creating a subaccount, just change the and to something different
NOTE: The test may fail for account validation - depending on whether the service is down or not
Debugging Errors
We understand that you may run into some errors while integrating our library. You can read more about our error messages here.
For authorization
and validation
error responses, double-check your API keys and request. If you get a server
error, kindly engage the team for support.
Support
For additional assistance using this library, contact the developer experience (DX) team via slack.
You can also follow us @FlutterwaveEng and let us know what you think 😊.
Contribution guidelines
Read more about our community contribution guidelines here
License
By contributing to this library, you agree that your contributions will be licensed under its MIT license.
Copyright (c) Flutterwave Inc.
Flutterwave API References
TODOs
- Add other Flutterwave Services - card,transfer,subaccount,payoutsubaccounts,plans and momo
- Console Commands - Webhooks, Make Payment, and Refunds.
All versions of laravel-payment with dependencies
illuminate/support Version ^7.0|^v8.83|^9.39|^10.0|^11.0
ext-json Version *