Download the PHP package faysal0x1/lara-payment without Composer
On this page you can find all versions of the php package faysal0x1/lara-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download faysal0x1/lara-payment
More information about faysal0x1/lara-payment
Files in faysal0x1/lara-payment
Package lara-payment
Short Description A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless
License MIT
Homepage https://github.com/faysal0x1/lara-payment
Informations about the package lara-payment
A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless
The lara-payment
package provides a convenient way to handle payments through multiple payment gateways in a Laravel 8, 9 and 10 application.
The package currently supports multiple gateways such as Paystack, Flutterwave and Stripe.
The package offers an easy to use interface that abstracts the complexities of integrating with these payment gateways.
It also provides a way to handle webhooks from the payment gateways.
Documentation
A comprehensive documentation is available to help you get started with the package here
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
- Faysal0x1
- Cybernerdie
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel SSLCommerz Payment Gateway Integration
A Laravel package for integrating SSLCommerz payment gateway into your Laravel application. This package provides a simple and flexible way to handle payments through SSLCommerz in your Laravel projects.
Features
- Easy checkout and hosted checkout options
- AJAX payment support
- IPN (Instant Payment Notification) handling
- Success, fail, and cancel URL handling
- Order validation
- Sandbox mode support
- Multiple payment methods support
- EMI payment support
- Customizable payment forms
- Comprehensive error handling
Requirements
- PHP >= 7.4
- Laravel >= 8.0
- SSLCommerz merchant account
Installation
-
Install the package via Composer:
-
Publish the configuration file:
-
Publish the controller:
-
Publish the views:
-
Publish the migrations:
- Run the migrations:
Configuration
Add the following environment variables to your .env
file:
The configuration file (config/sslcommerz.php
) contains the following options:
Usage
Basic Payment Integration
-
Using the Facade:
- Using the Controller:
Visit /example1
for AJAX payment or /example2
for hosted payment.
Available Routes
Advanced Features
-
EMI Payment Support:
-
Airline Ticket Profile:
-
Travel Vertical Profile:
- Telecom Vertical Profile:
Response Handling
-
Success Response:
- Failure Response:
Database Structure
The package creates an orders
table with the following structure:
Security Considerations
- Always use environment variables for sensitive data
- Enable SSL on your production environment
- Validate all incoming data
- Use proper error handling
- Keep your store credentials secure
Testing
- Set
SSLCOMMERZ_SANDBOX=true
in your.env
file for testing - Use test credentials provided by SSLCommerz
- Test all payment scenarios (success, fail, cancel)
- Verify IPN handling
- Test with different currencies and amounts
Support
For any issues or questions, please create an issue in the GitHub repository.
License
This package is open-sourced software licensed under the MIT license.
All versions of lara-payment with dependencies
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^8.50|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.50|^9.0|^10.0|^11.0|^12.0
spatie/laravel-package-tools Version ^1.11