Download the PHP package jaap-tech/laravel-nepali-payment without Composer
On this page you can find all versions of the php package jaap-tech/laravel-nepali-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jaap-tech/laravel-nepali-payment
More information about jaap-tech/laravel-nepali-payment
Files in jaap-tech/laravel-nepali-payment
Package laravel-nepali-payment
Short Description Laravel package for integrating Nepali payment gateways like eSewa, Khalti, and ConnectIps.
License MIT
Informations about the package laravel-nepali-payment
Laravel Nepali Payment Gateway
A comprehensive Laravel package for integrating Nepali payment gateways (eSewa, Khalti, and ConnectIps) with optional database tracking and payment management.
Features
✅ Multiple Gateway Support
- eSewa integration
- Khalti integration
- ConnectIps integration
✅ Database Integration (Optional)
- Track payment history
- Store gateway responses
- Polymorphic payment associations
- UUID support
✅ Event System
- Payment lifecycle events
- Custom event listeners
✅ Query Scopes & Helpers
- Easy payment retrieval
- Status filtering
- Gateway filtering
Installation
Install the package via Composer:
The package will auto-register the service provider.
Configuration
Publish the configuration file:
This creates config/nepali-payment.php with the following structure:
Environment Variables
Add these to your .env file:
eSewa:
Khalti:
ConnectIps:
Database Integration:
Quick Start
Basic Payment Flow (Without Database)
With Database Integration
First, enable the database integration:
Now you can track payments:
Database Models
Payment Model
The Payment model stores all payment records with full lifecycle tracking.
Scopes:
Methods:
Helper Functions
Quick helpers for common operations:
Events
The package dispatches events at key lifecycle points:
Verify Configuration
Check if all gateway configurations are valid:
Output example:
Example: Complete Payment Flow
Troubleshooting
"Database integration is not enabled" error
- Make sure
NEPALI_PAYMENT_DATABASE_ENABLED=truein.env - Run migrations:
php artisan migrate
"Missing config for nepali-payment" error
- Check all required environment variables are set in
.env - Run:
php artisan nepali-payment:check
Payment not being saved to database
- Verify database is enabled in config
- Check database connection is working
- Ensure migrations have been run
License
This package is licensed under the MIT License. See the LICENSE file for details.
Support
For issues, questions, or contributions, visit the GitHub repository.
All versions of laravel-nepali-payment with dependencies
kbk/nepali-payment-gateway Version ^1.0.2
illuminate/console Version ^10.0|^11.0|^12.0
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0