PHPackages                             hesabe/payment - 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. hesabe/payment

ActiveLibrary[Payment Processing](/categories/payments)

hesabe/payment
==============

Hesabe Payment Package allows you to use the Payment API to accept payments in Kuwait

v1.0.3(5y ago)11.6k↑150%MITPHPPHP &gt;=7.0.0

Since Nov 9Pushed 5y agoCompare

[ Source](https://github.com/hesabe-tech-team/payment-package)[ Packagist](https://packagist.org/packages/hesabe/payment)[ RSS](/packages/hesabe-payment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Hesabe Payment Package
======================

[](#hesabe-payment-package)

[![Latest Stable Version](https://camo.githubusercontent.com/6b61091c79a3b3b12c493f179bfca2fb2d95755748f0ba9155362e1f54cad85c/68747470733a2f2f706f7365722e707567782e6f72672f6865736162652f7061796d656e742f76)](https://packagist.org/packages/hesabe/payment)[![License](https://camo.githubusercontent.com/2612ca27f383a2f6535995ba72ea021a7f9748483bd944ef45e07f6628918b15/68747470733a2f2f706f7365722e707567782e6f72672f6e6578747061636b2f6e6578747061636b2f6c6963656e7365)](https://packagist.org/packages/nextpack/nextpack)[![Total Downloads](https://camo.githubusercontent.com/7e318ef66d03a476bf1e31c9dcc9c8bad2d99873a59fe9f8736a8546ef07250b/68747470733a2f2f706f7365722e707567782e6f72672f6865736162652f7061796d656e742f646f776e6c6f616473)](https://packagist.org/packages/hesabe/payment)[![Fahad Khan](https://camo.githubusercontent.com/de08ebf9a6a511754a47f36717f9ddcce1a9d8ec21ffaf662cb44533e7767288/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f417574686f722d46616861642532304b68616e2d6f72616e67652e737667)](https://hesabe.com)

**Hesabe Payment Package** is a PHP package designed to integrate Hesabe Payment Gateway in your application in the easiest way possible.

Get in touch with [Hesabe Support](mailto:support@hesabe.com) to get credentials in order to use this package.

Requirements
------------

[](#requirements)

1. Minimum PHP 7.0+ required
2. [Composer](https://getcomposer.org) installed globally

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

[](#installation)

1. Run the following command in the root of your PHP project:

    ```
    composer require hesabe/payment

    ```
2. Import the `Payment` class in the file you want to use this package.

    ```
    use Hesabe\Payment\Payment;

    ```
3. Initialise the `Hesabe` instance using `Payment` class. You need to pass the credentials in the class parameters.

    ```
    $hesabe = new Payment(
                __SECRET_KEY__,
                __IV_KEY__,
                __ACCESS_CODE__,
                true
            );

    ```

    The last parameter is a boolean which indicates on which environment are you on.

    - `true` = Sandbox
    - `false` = Production

    By default, the value will be `false`.
4. Call the `checkout` method from `Hesabe` by passing the request parameters in an array. It will redirect you to the Hesabe Payment Page.

    ```
    $hesabe->checkout([
        "merchantCode" => __MERCHANT_CODE__,
        "amount" => "1",
        "paymentType" => "0",
        "responseUrl" => "http://yourlink.com",
        "failureUrl" => "http://yourlink.com",
        "orderReferenceNumber" => "",
        "variable1" => null,
        "variable2" => null,
        "variable3" => null,
        "variable4" => null,
        "variable5" => null,
        "version" => "2.0",
    ]);

    ```

    These are the basic parameters which are passed to initiate a transaction, for more information about these parameters you may have a look [here](https://developer.hesabe.com/index.html#posting-payment-data).

Credits
-------

[](#credits)

- [Fahad Khan](https://github.com/fkhan-hesabe)

License
-------

[](#license)

The MIT License (MIT). See the [License File](https://github.com/nextpack/nextpack/blob/master/LICENSE) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.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 ~0 days

Total

4

Last Release

2016d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e946587e3085d8c2cb89139f2efa6ceec0e8c1be28d5eeeac7456a878f62fa88?d=identicon)[fkhan-hesabe](/maintainers/fkhan-hesabe)

---

Top Contributors

[![fkhan-hesabe](https://avatars.githubusercontent.com/u/65817014?v=4)](https://github.com/fkhan-hesabe "fkhan-hesabe (21 commits)")[![Mahmoudz](https://avatars.githubusercontent.com/u/1983984?v=4)](https://github.com/Mahmoudz "Mahmoudz (20 commits)")

---

Tags

paymentHesabe

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hesabe-payment/health.svg)

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

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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