Download the PHP package geekabel/mobile-money-payment without Composer
On this page you can find all versions of the php package geekabel/mobile-money-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mobile-money-payment
Mobile Money Payment Package
Overview
The Mobile Money Payment package provides a flexible and extensible solution for integrating mobile money payment services into PHP applications. It currently supports Tmoney and Flooz payment services, with an architecture that allows easy addition of new payment providers.
Features
- Support for multiple payment services (currently Tmoney and Flooz)
- Extensible architecture using the Strategy pattern
- Standardized payment responses across different services
- Flexible Flooz counter management system
- Easy integration with various PHP applications, including Symfony
Requirements
- PHP 8.2 or higher
- Symfony HTTP Client
Installation
Install the package via Composer:
Basic Usage
Setting up the Payment Manager
Making a Payment
Checking Payment Status
Extending the Package
Adding a New Payment Service
-
Create a new class that implements
PaymentServiceInterface
: - Add the new service to the Payment Manager:
Custom Flooz Counter Manager
-
Create a class that implements
FloozCounterManagerInterface
: - Use the custom manager when creating the Flooz service:
Advanced Usage
Error Handling
The package uses PaymentException
for specific payment-related errors. It's recommended to catch these exceptions:
Logging
The package accepts a PSR-3 compatible logger. You can provide your own logger implementation for custom logging behavior:
Symfony Integration
For detailed instructions on how to integrate this package with Symfony 6.4, 7.0, 7.1, and superior versions, please refer to our Symfony Integration Guide.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This package is open-sourced software licensed under the MIT license.
All versions of mobile-money-payment with dependencies
symfony/http-client Version ^7.1
symfony/uid Version ^7.1
endroid/qr-code Version ^5.0