PHPackages                             uzzal/sslcommerz - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. uzzal/sslcommerz

ActiveLibrary[Payment Processing](/categories/payments)

uzzal/sslcommerz
================

Laravel library for SSLCommerz payment gateway

v1.0.0(6y ago)1262911[1 issues](https://github.com/mahabubulhasan/sslcommerz/issues)MITPHPPHP &gt;=5.6.4

Since Oct 9Pushed 6y ago3 watchersCompare

[ Source](https://github.com/mahabubulhasan/sslcommerz)[ Packagist](https://packagist.org/packages/uzzal/sslcommerz)[ RSS](/packages/uzzal-sslcommerz/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

SSLCommerz
==========

[](#sslcommerz)

[SSLCommerz](https://www.sslcommerz.com) Payment gateway library for Laravel framework. Official documentation is [here](https://developer.sslcommerz.com/docs.html).

install
-------

[](#install)

```
composer require uzzal/sslcommerz

```

### publish

[](#publish)

```
artisan vendor:publish

```

This command will create a `sslcommerz.php` file inside the `config` directory. Configure your parameters in your `.env` file

```
#sslcommerz
STORE_ID=your_store_id
STORE_PASSWORD=your_store_password
SUCCESS_URL=http://your-domain.at/success.php
FAIL_URL=http://your-domain.at/fail.php
CANCEL_URL=http://your-domain.at/cancel.php
SANDBOX_MODE=true

```

### Initiating a Payment session

[](#initiating-a-payment-session)

This `initSession` will give you a gateway url. With this url you will be able to continue the payment through sslcommerz.

```
$customer = new Customer('Mahabubul Hasan', 'mahabub@example.com', '0171xxxxx22');
$resp = Client::initSession($customer, 29); //29 is the amount
echo $resp->getGatewayUrl();
```

or with configuration

```
$customer = new Customer('Mahabubul Hasan', 'mahabub@example.com', '0171xxxxx22');
$config[SessionRequest::EMI] = '0';
$resp = Client::initSession($customer, 29, $config);
echo $resp->getGatewayUrl();
```

### Request for Validation

[](#request-for-validation)

This `verifyOrder` method takes a `val_id` as parameter which you will get in the IPN request.

```
$resp = Client::verifyOrder('180828114058np43AJdzJJOsYzc');
echo 'status: '.$resp->getStatus();
echo 'transaction: '.$resp->getTransactionId();
```

### IPN Listener (Step 4,5)

[](#ipn-listener-step-45)

After filling the card information and submission in the sslcommerz window it will send a IPN notificaion to your specified IPN url. To grab the notification use the following code. For more details [see here](https://developer.sslcommerz.com/docs.html)

```
if(ipn_hash_varify(config('sslcommerz.store_password'))){
    $ipn = new IpnNotification($_POST);
    $val_id = $ipn->getValId();
    $transaction_id = $ipn->getTransactionId();
    $amount = $ipn->getAmount();
    $resp = Client::verifyOrder($val_id);
}
```

### SSLCommerz process flow

[](#sslcommerz-process-flow)

[![alt text](https://camo.githubusercontent.com/e5670c1a502a9f6e159550f1517e6877aafd7642fa7fe076f55a9013d732a745/68747470733a2f2f646576656c6f7065722e73736c636f6d6d65727a2e636f6d2f6173736574732f696d616765732f62616e6e65722f73736c635f70726f636573732e706e67 "Process flow")](https://camo.githubusercontent.com/e5670c1a502a9f6e159550f1517e6877aafd7642fa7fe076f55a9013d732a745/68747470733a2f2f646576656c6f7065722e73736c636f6d6d65727a2e636f6d2f6173736574732f696d616765732f62616e6e65722f73736c635f70726f636573732e706e67)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~572 days

Total

2

Last Release

2203d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/151796ef98fb8532608743695688a8c1217ea61de716bfe55b0ad9e0a8488154?d=identicon)[uzzal](/maintainers/uzzal)

---

Top Contributors

[![mahabubulhasan](https://avatars.githubusercontent.com/u/1210494?v=4)](https://github.com/mahabubulhasan "mahabubulhasan (11 commits)")

---

Tags

laravelpayment-gatewaypayment-processorsslcommerzlaravelpaymentgatewaysslcommerz

### Embed Badge

![Health badge](/badges/uzzal-sslcommerz/health.svg)

```
[![Health](https://phpackages.com/badges/uzzal-sslcommerz/health.svg)](https://phpackages.com/packages/uzzal-sslcommerz)
```

###  Alternatives

[evryn/laravel-toman

A simple stable Laravel package to handle popular payment gateways in Iran including ZarinPal and IDPay.

1079.9k](/packages/evryn-laravel-toman)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
