Download the PHP package mak8tech/mobile-wallet-zm without Composer
On this page you can find all versions of the php package mak8tech/mobile-wallet-zm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mak8tech/mobile-wallet-zm
More information about mak8tech/mobile-wallet-zm
Files in mak8tech/mobile-wallet-zm
Package mobile-wallet-zm
Short Description A Laravel package for mobile money payments in Zambia (MTN, Airtel, Zamtel)
License MIT
Homepage https://github.com/Mak8Tech/mobile-wallet-zm
Informations about the package mobile-wallet-zm
Mobile Wallet ZM
A comprehensive Laravel package for integrating mobile money payment services in Zambia. This package supports MTN Mobile Money, Airtel Money, and Zamtel Kwacha, providing a unified API for all three providers.
Features
- Multi-provider Support: Seamlessly integrate with MTN, Airtel, and Zamtel
- Laravel Integration: Works with Laravel 12+ and includes a service provider, facade, and middleware
- Inertia.js & React Components: Ready-to-use TypeScript React components for payment forms
- Transaction Management: Complete lifecycle management for payment transactions
- Webhook Handling: Process payment notifications from all providers
- Configuration: Flexible configuration options for each provider
Installation
You can install the package via composer:
After installation, run the package installation command:
This will publish the necessary configuration files, migrations, and frontend components.
Manual Setup
You can also publish and run the migrations manually:
Publish the configuration file:
Publish the frontend components:
Configuration
After publishing the configuration file, you can find it at config/mobile_wallet.php. You'll need to set up your API credentials for each provider:
Add the corresponding environment variables to your .env file:
Usage
Backend Usage
You can use the facade to interact with the default provider:
To use a specific provider:
Frontend Usage
The package includes a React component for payment forms. After publishing the assets, you can import and use the component:
Handling Webhooks
The package automatically registers routes to handle webhooks from all providers. Make sure your webhook URL is properly configured in your provider dashboard:
You can also use the provider-agnostic endpoint:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Innocent Makusa
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of mobile-wallet-zm with dependencies
illuminate/contracts Version ^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
inertiajs/inertia-laravel Version ^2.0