PHPackages                             applab/sadad - 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. applab/sadad

ActiveLibrary[Payment Processing](/categories/payments)

applab/sadad
============

Applab Sadad

v1.1(1y ago)12.2k2[1 issues](https://github.com/applab-qatar/sadad/issues)MITPHPPHP &gt;=5.6

Since Oct 4Pushed 1y agoCompare

[ Source](https://github.com/applab-qatar/sadad)[ Packagist](https://packagist.org/packages/applab/sadad)[ RSS](/packages/applab-sadad/feed)WikiDiscussions main Synced 1mo ago

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

[![](https://camo.githubusercontent.com/3c82694f87d9c29e9a313f1a1a8f37d6d7ba3ea24d6c3871caad9c3b5446b816/68747470733a2f2f6170706c61622e71612f77702d636f6e74656e742f75706c6f6164732f323032302f31312f706167652d6c6f676f2e737667)](https://applab.qa)

Sadad Payment Paltform
----------------------

[](#sadad-payment-paltform)

Sadad is a Qatari Platform to send/receive payment via online \[store / Website / portal \] and mobile \[applications\]

Below are a full list of features:

- Web Checkout
- API Integration
    - Transactions - List Transactions
    - Transaction - Get Single Transaction
    - Transaction - Refund Transaction

About Applab
------------

[](#about-applab)

[AppLab](https://applab.qa/contact-us) is a leading company specialized in online platforms development. Online Platforms include Back-end, Databases, Web Applications and Mobile

About Sadad Platform
--------------------

[](#about-sadad-platform)

[Sadad](https://developer.sadad.qa/) Sadad is a Qatari Platform to send/receive payment via online.

Installing Applab Sadad
-----------------------

[](#installing-applab-sadad)

The recommended way to install Applab Sadad is through [Composer](https://getcomposer.org/).

```
composer require applab/sadad
```

Publish configuration and migrations

```
php artisan vendor:publish --provider="Applab\Sadad\SadadServiceProvider"
```

The service provider is loaded automatically using [package discovery](https://laravel.com/docs/5.7/packages#package-discovery).

Usage
-----

[](#usage)

### Configuration

[](#configuration)

The package ships with a configuration file called applab-sadad.php which is published to the config directory during installation. Below is an outline of the settings.

```
sadadId
```

Issued when creating your sadad account

```
secretKey
```

Issued when register your domain

```
domain
```

Your registered domain name

### WebCheckout 2.1

[](#webcheckout-21)

Customer is on your website’s checkout page and fills up the details and places order.

```
  $webCheckoutOneReq = new WCORequest();
  $webCheckoutOneReq->total_amount=100;
  $webCheckoutOneReq->order_id = $webCheckoutReq->getOrderId();
  $webCheckoutOneReq->customer_mobile = "974XXXXXXXX";
  $webCheckoutOneReq->callback_url = url('sadad-purchased/'.$webCheckoutReq->order_id);
  $products[] = [
    'id' => 123,
    'title' => "product name",
    'quantity' => 1,
    'amount' => 1,
    'type' => 'line_item'
  ];
  $webCheckoutOneReq->setProducts($products);
  return Sadad::webCheckoutOne($webCheckoutOneReq); //default view
```

exclude your callback url in verify CSRF Token middleware to get the post response from SADAD

### Merchant Integration APIs

[](#merchant-integration-apis)

#### Transactions List

[](#transactions-list)

```
  $filters = [];
  Sadad::getTransactions($filter)
```

#### Transaction details

[](#transaction-details)

```
  Sadad::getTransaction('SD33XXXXXXXXXX8')
```

#### Transaction refund

[](#transaction-refund)

```
  Sadad::refundTransaction('SD33XXXXXXXXXX8')
```

#### Invoices List

[](#invoices-list)

```
  $filters = [];
  Sadad::getInvoices($filter)
```

#### Create Invoice

[](#create-invoice)

```
  $invoiceData = new InvoiceRequest();
  $invoiceData->countryCode = '974';
  $invoiceData->cellnumber = '66XXXXXX';
  $invoiceData->clientname = 'Client name';
  // Status for Invoice
  // 1 - Draft, 2 - Unpaid, 3 - Paid, 4 - Overdue, 5 - Cancelled
  $invoiceData->status = 2;
  $invoiceData->remarks = 'Invoice test remarks';
  $invoiceData->amount = 100; // Total amount in QR

  // Invoice can have many item
  $invoice_details[] = [
      'description' => 'Testing 123',
      'quantity' => 1,
      'amount' => 100, // Amount for each item
  ];
  $invoiceData->setInvoiceDetails($invoice_details);
  $payload = $invoiceData->preparePayload()->getPayload();

  return Sadad::createInvoice($payload);
```

#### Share Invoice

[](#share-invoice)

```
  // Share using mobile
  $payload = [
    'sentvia' => 4,
    'invoicenumber' => 'SD66XXXXXXXXX8',
    'receivercellno' => '66XXXXXX',
  ];
  // Share using email
  $payload = [
    'sentvia' => 3,
    'invoicenumber' => 'SD66XXXXXXXXX8',
    'receiverEmail' => 'mail@example.com',
  ];

  return Sadad::shareInvoice($payload);
```

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this package, please send an e-mail to Manu Applab via . All security vulnerabilities will be promptly addressed.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.7% 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 ~256 days

Total

5

Last Release

663d ago

Major Versions

v0.1.1 → v1.02022-01-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/941d3c1ea621f54eb13649bb7be84a494b7a8753affa07fc20adf03819c1c78b?d=identicon)[manu-applab](/maintainers/manu-applab)

---

Top Contributors

[![manu-applab](https://avatars.githubusercontent.com/u/63874612?v=4)](https://github.com/manu-applab "manu-applab (15 commits)")[![HydroMoon](https://avatars.githubusercontent.com/u/9692083?v=4)](https://github.com/HydroMoon "HydroMoon (14 commits)")

---

Tags

laravelpaymentsadadapplabQatar

### Embed Badge

![Health badge](/badges/applab-sadad/health.svg)

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

###  Alternatives

[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24553.7k](/packages/larabook-gateway)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)

PHPackages © 2026

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