PHPackages                             xenon/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. xenon/sslcommerz

ActiveLibrary[Payment Processing](/categories/payments)

xenon/sslcommerz
================

Laravel library for SSLCommerz payment gateway

v1.0.8(1y ago)1271MITPHPPHP &gt;=7.2

Since Aug 16Pushed 1y agoCompare

[ Source](https://github.com/arif98741/sslcommerz)[ Packagist](https://packagist.org/packages/xenon/sslcommerz)[ RSS](/packages/xenon-sslcommerz/feed)WikiDiscussions master Synced today

READMEChangelog (6)Dependencies (3)Versions (10)Used By (0)

SSLCommerz
==========

[](#sslcommerz)

This is a fork of uzzal/sslcommerz package for laravel. [SSLCommerz](https://www.sslcommerz.com) Payment gateway library for Laravel framework. Official documentation is [here](https://developer.sslcommerz.com/docs.html).

Installation
------------

[](#installation)

```
composer require xenon/sslcommerz

```

### publish

[](#publish)

```
php artisan vendor:publish --provider=Xenon\SslCommerz\SslCommerzServiceProvider

```

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
IPN_URL=http://your-domain.at/ipn.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. Pass data using $customer using by calling several methods

```
$customer = new Customer('Ariful Islam', 'something@example.com', '0171xxxxx22');
$customer->setOptionA('A');
$customer->setOptionB('B');
$customer->setOptionC('C');
$customer->setOptionD('D');

$invoice = 'trx_' . uniqid(); //transaction or invoice string
$resp = Client::initSession($customer, 10, $invoice); //29 is the amount
return redirect($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 notification 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);
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance46

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.2% 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 ~144 days

Recently: every ~251 days

Total

8

Last Release

411d ago

PHP version history (2 changes)v1.0.0-betaPHP &gt;=5.6.4

v1.0.3PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc7bf6cacc5223cb4f56412e5510ca049755722c6c4be46c9e759500332e094b?d=identicon)[arif98741](/maintainers/arif98741)

---

Top Contributors

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

---

Tags

laravelsslcommerzsslcommerz-laravelsslcommerz-payment-gatewaysslcommerz-payment-gateway-integrationlaravelpaymentgatewaysslcommerz

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[backpack/crud

Quickly build admin interfaces using Laravel, Bootstrap and JavaScript.

3.4k3.7M223](/packages/backpack-crud)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42361.9k4](/packages/bitpay-sdk)[evryn/laravel-toman

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

10710.5k](/packages/evryn-laravel-toman)

PHPackages © 2026

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