Download the PHP package freelancernishad/laravel-ekpay without Composer
On this page you can find all versions of the php package freelancernishad/laravel-ekpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download freelancernishad/laravel-ekpay
More information about freelancernishad/laravel-ekpay
Files in freelancernishad/laravel-ekpay
Package laravel-ekpay
Short Description Ekpay Payment Gateway integration for Laravel
License MIT
Informations about the package laravel-ekpay
Laravel Ekpay Payment Gateway
A reusable and extensible Laravel package for integrating the Ekpay Payment Gateway. Built for flexibility across any project type (E-commerce, School Management, SaaS, etc.).
Features
- Project Agnostic: Link payments to any model (Order, StudentFee, Subscription) using polymorphic relations.
- Extensible: Override default models and add custom database fields via configuration.
- Detailed Logging: Every request, response, and IPN payload is logged for auditing.
- Event-Driven: Dispatches events upon payment success/failure for easy business logic integration.
Installation
-
Install the package via composer:
-
Publish the config and migrations:
- Run the migrations:
Configuration
Add your Ekpay credentials to your .env file:
Basic Usage
Controller Example
Advanced Usage & Customization
Adding Extra Fields (Meta Data)
You can pass additional data using the meta field. This data is saved as JSON in the database.
Overriding Models
If you want to add actual database columns to the logs:
- Create a migration to add columns to
ekpay_logs. -
Create a model that extends the package model:
- Update
config/ekpay.php:
Listening for Success
Register a listener for FreelancerNishad\Ekpay\Events\EkpayPaymentEvent to handle logic after payment is confirmed.
License
The MIT License (MIT).