Download the PHP package ngandu-dev/flexpay without Composer
On this page you can find all versions of the php package ngandu-dev/flexpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ngandu-dev/flexpay
More information about ngandu-dev/flexpay
Files in ngandu-dev/flexpay
Package flexpay
Short Description FlexPay API PHP Client
License MIT
Homepage https://github.com/ngandu-dev/flexpay-php
Informations about the package flexpay
Flexpay PHP
For privacy reasons, Flexpay original documentation cannot be shared without written permission, for more information about credentials and implementation details, please reach them at flexpay.cd
Features
- Mobile money and card payment requests
- Payout requests
- Transaction status and callback handling
Requirements
- PHP 8.4 or later
- Composer 2
Installation
You can use the PHP client by installing the Composer package and adding it to your application’s dependencies:
Usage
Authentication
- Step 1. Contact Flexpay to get a Merchant Account You will receive a Merchant Form to complete in order to provide your business details and preferred Cash out Wallet or Banking Details.
- Step 2. Once the paperwork is completed, you will be issued with Live and Sandbox Accounts (Merchant Code and Authorization token)
Then use these credentials to authenticate your client
Create a Payment Request
Note: we highly recommend your
callbacksurls to be unique for each transaction.
Mobile Payment
Once called, Flexpay will send a payment request to the user's mobile money account, and the user will have to confirm the payment on their phone. after that the payment will be processed and the callback url will be called with the transaction details.
Visa Card Payment
You can set up card payment via VPOS features, which is typically used for online payments. it's a gateway that allows you to accept payments from your customers using their credit cards.
handling callback (callbackUrl, approveUrl, cancelUrl, declineUrl)
Flexpay will send a POST request to the defined callbackUrl and the response will contain the transaction details. you can use the following code to handle the callback by providing incoming data as array.
Check Transaction state
You don't trust webhook ? you can always check the transaction state by providing the order number.
Development
Contributing
See CONTRIBUTING.md before opening an issue or pull request.
Security
Report vulnerabilities privately as described in SECURITY.md.
License
Released under the MIT License.
Contributors
All versions of flexpay with dependencies
symfony/http-client Version ^7.0|^8.0
webmozart/assert Version ^1.11|^2.4
symfony/serializer Version ^7.0|^8.0
symfony/property-access Version ^7.0|^8.0