PHPackages                             nekofar/omnipay-yekpay - 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. nekofar/omnipay-yekpay

ActiveLibrary[Payment Processing](/categories/payments)

nekofar/omnipay-yekpay
======================

Yekpay driver for the Omnipay PHP payment processing library

v1.0.0-alpha.5(3y ago)411MITPHPPHP ^7.0CI failing

Since Nov 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nekofar/omnipay-yekpay)[ Packagist](https://packagist.org/packages/nekofar/omnipay-yekpay)[ Docs](https://github.com/nekofar/omnipay-yekpay)[ RSS](/packages/nekofar-omnipay-yekpay/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (8)Used By (0)

Omnipay: Yekpay
===============

[](#omnipay-yekpay)

**Yekpay driver for the Omnipay PHP payment processing library**

[![Packagist Version](https://camo.githubusercontent.com/b0a1cc93dbe14836e29472a3378944794a01d9774c6983caf24157f1a86ba9df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e656b6f6661722f6f6d6e697061792d79656b7061792e737667)](https://packagist.org/packages/nekofar/omnipay-yekpay)[![PHP from Packagist](https://camo.githubusercontent.com/838eb4821c7603e623ce36ea398dba67b9080ae00aff728a2d9b9cfe346328da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e656b6f6661722f6f6d6e697061792d79656b7061792e737667)](https://packagist.org/packages/nekofar/omnipay-yekpay)[![Travis (.com) branch](https://camo.githubusercontent.com/923854686ba6565a99475732d33c174979f51ac6b569d72503c2d25c766548dd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f6d2f6e656b6f6661722f6f6d6e697061792d79656b7061792f6d61737465722e737667)](https://travis-ci.com/nekofar/omnipay-yekpay)[![Codecov](https://camo.githubusercontent.com/a35a7c7c28978e7fe37de065febb54271d61d09edfadaa21323499be3c4dad4a/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f67682f6e656b6f6661722f6f6d6e697061792d79656b7061792e737667)](https://codecov.io/gh/nekofar/omnipay-yekpay)[![Packagist](https://camo.githubusercontent.com/b303bea4d654178c0a69d60165c0a56d960d78e2e8b09868c650591c5d7a4c13/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e656b6f6661722f6f6d6e697061792d79656b7061792e737667)](https://github.com/nekofar/omnipay-yekpay/blob/master/LICENSE)[![Twitter: nekofar](https://camo.githubusercontent.com/e6263e20d601d2873043b18b66c58ef4c5e4718bcae7a0b9c8906f800c260e14/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6e656b6f6661722e7376673f7374796c653d666c6174)](https://twitter.com/nekofar)

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

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `nekofar/omnipay-yekpay` with Composer:

```
composer require league/omnipay nekofar/omnipay-yekpay

```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Yekpay

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)repository.

Example
-------

[](#example)

### Purchase

[](#purchase)

The result will be a redirect to the gateway or bank.

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Yekpay');
$this->gateway->setMerchantId('XXXXXXXXXXXXXXXXXXXX');
$this->gateway->setReturnUrl('https://example.com/callback.php');

// Send purchase request
$response = $gateway->purchase([
    'amount' => 799.00,
    'fromCurrencyCode' => 978,
    'toCurrencyCode' => 364,
    'orderNumber' => 125548,
    'firstName' => 'John',
    'lastName' => 'Doe',
    'email' => 'test@example.com',
    'mobile' => '+44123456789',
    'address' => 'Alhamida st Al ras st',
    'postalCode' => '64785',
    'country' => 'United Arab Emirates',
    'city' => 'Dubai',
    'description' => 'Apple mac book air 2017',
])->send();

// Process response
if ($response->isRedirect()) {
    // Redirect to offsite payment gateway
    $response->redirect();
} else {
    // Payment failed: display message to customer
    echo $response->getMessage();
}
```

On return, the usual completePurchase will provide the result of the transaction attempt.

The final result includes the following methods to inspect additional details:

```
// Send purchase complete request
$response = $gateway->completePurchase([
    'authority' => $_REQUEST['authority'],
)->send();

// Process response
if ($response->isSuccessful()) {
    // Payment was successful
    print_r($response);
} else {
    // Payment failed: display message to customer
    echo $response->getMessage();
}
```

### Testing

[](#testing)

```
composer test
```

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/nekofar/omnipay-yekpay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% 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 ~184 days

Recently: every ~230 days

Total

6

Last Release

1459d ago

### Community

Maintainers

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

---

Top Contributors

[![nekofar](https://avatars.githubusercontent.com/u/147401?v=4)](https://github.com/nekofar "nekofar (31 commits)")[![mend-bolt-for-github[bot]](https://avatars.githubusercontent.com/in/16809?v=4)](https://github.com/mend-bolt-for-github[bot] "mend-bolt-for-github[bot] (2 commits)")

---

Tags

gatewaymerchantomnipaypaymentpurchaseyekpaypaymentgatewaymerchantomnipaypurchaseyekpay

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/nekofar-omnipay-yekpay/health.svg)

```
[![Health](https://phpackages.com/badges/nekofar-omnipay-yekpay/health.svg)](https://phpackages.com/packages/nekofar-omnipay-yekpay)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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