Download the PHP package devadze/laravel-flitt-payment without Composer
On this page you can find all versions of the php package devadze/laravel-flitt-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devadze/laravel-flitt-payment
More information about devadze/laravel-flitt-payment
Files in devadze/laravel-flitt-payment
Package laravel-flitt-payment
Short Description A Laravel package for Flitt Payment API integration
License MIT
Informations about the package laravel-flitt-payment
Laravel Flitt Payment Package
A simple and elegant Laravel package for integrating the Flitt Payment Gateway into your Laravel application.
🚀 Features
- Seamless Flitt payment integration
- Clean fluent API via Facade (
Flitt::setAmount(...)->redirect()) - Automatic signature generation
- Callback URL handling
- Configurable merchant settings
- Extendable via service class, trait, and contract
📦 Installation
Install the package via Composer:
You can install the package via composer:
You can publish the config file with:
Once published, the configuration file will be available at:
And run migrations:
Environment Variables
Add the following variables to your .env file to configure the package:
Usage
Usage Example: Simple Payment Processing
To initiate a payment, use the FlittPayment facade to set the order details and redirect:
Callback Handling
The package handles callback behavior automatically. When a payment is processed, it will send a POST request to your callback URL with the payment details.
Example: Registering a Listener for Flitt Payment Updates Add the following code to your event listener:
Setting Up the Event Listener
Setting Up the Event Listener To handle transaction status updates efficiently, you need to register an event listener that listens for the HandleFlittPayment event triggered by the package.
Generating the Listener Automatically You can generate the event listener using the Artisan command:
This command will create a listener class at app/Listeners/HandleFlittPayment.php, which you can customize to handle the event logic.
This approach provides flexibility by allowing dynamic event registrations at runtime without modifying the EventServiceProvider.
For more details on event handling in Laravel, refer to the official documentation.