PHPackages                             moeen-basra/omnipay-easypaisa - 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. moeen-basra/omnipay-easypaisa

ActiveLibrary[Payment Processing](/categories/payments)

moeen-basra/omnipay-easypaisa
=============================

Easypaisa driver for the Omnipay PHP payment processing library

1.0.2(2y ago)09MITPHP

Since Oct 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/moeen-basra/omnipay-easypaisa)[ Packagist](https://packagist.org/packages/moeen-basra/omnipay-easypaisa)[ Docs](https://github.com/moeen-basra/omnipay-easypaisa)[ RSS](/packages/moeen-basra-omnipay-easypaisa/feed)WikiDiscussions main Synced 1mo ago

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

Omnipay: Easypaisa
==================

[](#omnipay-easypaisa)

**Telenor Easypaisa gateway for the Omnipay PHP payment processing library**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements easypaisa support for Omnipay.

Install
-------

[](#install)

Via Composer

```
$ composer require moeen-basra/omnipay-easypaisa
```

Usage
-----

[](#usage)

This gateway provides seamless integration with easypaisa rest API integration.

### Purchase Request

[](#purchase-request)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Easypaisa');

// initialize with array
$gateway->initialize([
    'storeId' => 'your-store-id',
    'username' => 'your-username',
    'password' => 'your-password',
    'accountNum' => 'your-account-number',
]);

// or individual properties setter

$gateway->setAcountId('your-store-id')
    ->setUsername('your-username')
    ->setPassword('your-password')
    ->setAccountNum('your-account-number');

// set the test mode if needed
$gateway->setTestMode(true);

try {
    $parameters = [
        'transactionId' => '',
        'amount' => '', // float
        'paymentMethod' => 'OTC', // OTC or MA
        'emailAddress' => 'customer-email',
        'mobileNumber' => 'customer-phone', // 10 digits phone 03xxxxxxxxx
        'tokenExpiry' => (30 * 60), // 30 minutes
        'extra' => [
            'field_1' => 'value_1',
            'field_2' => 'value_2',
            'field_3' => 'value_3',
            'field_4' => 'value_4',
            'field_5' => 'value_5'
        ],
    ];

    $response = $gateway->purchase($parameters)->send();

    // var_dump($response->getData());

    if ($response->isSuccessful()) {
     // handle success response
    } else {
    // handle failed response
    }
} catch (\Throwable $exception) {
    var_dump($exception);
}
```

### Inquiry Request

[](#inquiry-request)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Easypaisa');

// initialize with array
$gateway->initialize([
    'storeId' => 'your-store-id',
    'username' => 'your-username',
    'password' => 'your-password',
    'accountNum' => 'your-account-number',
]);

// set the test mode if needed
$gateway->setTestMode(true);

try {
    $parameters = [
        'transactionId' => '',
    ];

    $response = $gateway->fetchTransaction($parameters)->send();

    // var_dump($response->getData());

    if ($response->isSuccessful()) {
     // handle success response
    } else {
    // handle failed response
    }
} catch (\Throwable $exception) {
    var_dump($exception);
}
```

**NOTE:** You can check the tests Mock for sample response data.

License
-------

[](#license)

This package is released under the [MIT License](https://opensource.org/licenses/MIT). See the [LICENSE](LICENSE) file for details.

Contact
-------

[](#contact)

You can reach me here

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~3 days

Total

3

Last Release

934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/29e85434bbb62af31bbfe18c0983fd39f14e472995e53ecfab734258fd470b9b?d=identicon)[moeen-basra](/maintainers/moeen-basra)

---

Top Contributors

[![moeen-basra](https://avatars.githubusercontent.com/u/3841052?v=4)](https://github.com/moeen-basra "moeen-basra (8 commits)")

---

Tags

paymentgatewaypaymerchantomnipaytelenoreasypaisatelenor-easypaisa

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/moeen-basra-omnipay-easypaisa/health.svg)

```
[![Health](https://phpackages.com/badges/moeen-basra-omnipay-easypaisa/health.svg)](https://phpackages.com/packages/moeen-basra-omnipay-easypaisa)
```

###  Alternatives

[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24626.9k3](/packages/omnipay-payfast)

PHPackages © 2026

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