Download the PHP package afzalsabbir/sslaracommerz without Composer
On this page you can find all versions of the php package afzalsabbir/sslaracommerz. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download afzalsabbir/sslaracommerz
More information about afzalsabbir/sslaracommerz
Files in afzalsabbir/sslaracommerz
Package sslaracommerz
Short Description A package for SSLCommerz Payment Gateway. Inspired by https://github.com/sslcommerz/SSLCommerz-Laravel
License MIT
Informations about the package sslaracommerz
SSLaraCommerz - Laravel Package
A package for SSLCommerz Payment Gateway \ Inspired by SSLCommerz \ SSLCommerz Payment gateway library for Laravel framework. Official documentation is here.
[]()
[
]()
[
]()
[]()
[
]()
[
]()
[
]()
[
]()
[]()
[
]()
[
]()
[
]()
[]()
[
]()
[]()
[
]()
[
]()
Tags: Payment Gateway, SSLCommerz, IPN, Laravel, SSLaraCommerz
Requires: Laravel >= 5.6 and MySQL
License: MIT License
Install
Migration
Instructions
Vendor Publish - Required
Public Assets: To integrate popup checkout, use the below script before the end of body tag.
-
For Sandbox
or, Publish the Public Assets and use the below
sandboxscript -
For Live
or, Publish the Public Assets and use the below
livescript
Routes and Controller: To customize the routes and controller, use the below command.
- Add
$this->loadRoutesFrom(base_path('routes/sslcommerz.php'));inapp/Providers/RouteServiceProvider.php
Vendor Publish - Optional
Note: If you later encounter issues with session destroying after redirect, you can set in your
config/session.phpfile.
-
Step 1: Add
STORE_IDandSTORE_PASSWORDvalues on your project's.envfile. You can register for a store at https://developer.sslcommerz.com/registration/ - Step 2: Add the below routes into the
$exceptsarray ofVerifyCsrfTokenmiddleware.
Now, let's go to the main integration part.
-
Step 3: Use the below button where you want to show the "Pay Now" button:
-
Step 4: For EasyCheckout (Popup) integration, you can update the
checkout_ajax.phpor use a different file according to your need. We have provided a basic sample page from where you can kickstart the payment gateway integration. -
Step 5: For Hosted Checkout integration, you can update the
checkout_hosted.phpor use a different file according to your need. We have provided a basic sample page from where you can kickstart the payment gateway integration. - Step 6: For redirecting action from SSLCommerz Payment gateway, we have also provided sample
success.php,cancel.php,fail.phpfiles. You can update those files according to your need.
Original Documentation
For more clear concept read: SSLCommerz README.md
Testing
Run the tests with:
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.
All versions of sslaracommerz with dependencies
laravel/framework Version ^6.0|^7.0|^8.0|^9.0
guzzlehttp/guzzle Version ^6.3|^7.0