sslcommerz /
SSLCommerz-Laravel
SSLCOMMERZ is a bangladeshi payment gateway provider. This is Laravel Library for SSLCOMMERZ.
Loading repository data…
sslcommerz / repository
SSLCOMMERZ is a bangladeshi payment gateway provider. This is Cake PHP for SSLCOMMERZ.
In this example you will find below scripts.
config/routes.php : Required route for the functionssrc/Controller/PaymentController.php : All the functions to do the transaction. Read the comments carefully.src/Utility/sslcommerz/ directory: Helper Library class collection.src/Utility/sslcommerz/config/config.php file : Update Store id, Store password, Connecte to Sandbox (Test Environment) or Live Environmentsrc/Template/Payment directory: Example view files for Easycheckout (Popup) and Hosted checkout payment integration.Note: Here,
src/Utility/sslcommerz/directory contains the core library that is needed for integrating the SSLCommerz Payment gateway with your system. Other files are provided for understanding the integration process.
For EasyCheckout (Popup) integration, make sure that, the below script is added before the end of body tag in your view file.
(function (window, document) {
var loader = function () {
var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0];
script.src = "https://sandbox.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7);
tag.parentNode.insertBefore(script, tag);
};
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader);
})(window, document);
(function (window, document) {
var loader = function () {
var script = document.createElement("script"), tag = document.getElementsByTagName("script")[0];
script.src = "https://seamless-epay.sslcommerz.com/embed.min.js?" + Math.random().toString(36).substring(7);
tag.parentNode.insertBefore(script, tag);
};
window.addEventListener ? window.addEventListener("load", loader, false) : window.attachEvent("onload", loader);
})(window, document);
And, for Pay Now button, use the below code:
<button class="your-button-class" id="sslczPayBtn"
token="if you have any token validation"
postdata="your javascript arrays or objects which requires in backend"
order="If you already have the transaction generated for current order"
endpoint="payViaAjax"> Pay Now
</button>
First create your Sanbox(Test Environment) store account from below url. After registration you will get two mail. One for Store_id and Store_password. Another one for Report panel access. Sandbox Account Note: For live store id or account you have to communicate with us. Our mail address: operation@sslcommerz.com
Then give the store_id and store_password in SSLCommerz.php page.
Here you have to run the PaymentController.php controller by calling pay (Like: http://yourdomain.com/pay) Here you have to receive all the order data to initate the payment. Let's say, your oder trnsaction informations are saving in a table called "orders"
You have to set your IPN page from the provided report panel. After login, go to My Stores then IPN Settings. IPN url will be http://yourdomain.com/ipn.
For EasyCheckout integration example, please check the http://yourdomain.com/example1 and for hosted checkout example, please check the http://yourdomain.com/example2 URL.
Customer need to do a live transaction to check the full process. After the transaction below things need to ensure
Note: In the gateway you may not found Banks. After getting live store id, it takes 10 to 15 working days to enable these. You may follow up your KAM(Key Account Manager).
Cm. Saydur Rahman
Prabal Mallick
Md. Rakibul Islam
Selected from shared topics, language and repository description—not editorial ratings.
sslcommerz /
SSLCOMMERZ is a bangladeshi payment gateway provider. This is Laravel Library for SSLCOMMERZ.