PHPackages                             romm1/omnipay-payu - 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. romm1/omnipay-payu

ActiveLibrary[Payment Processing](/categories/payments)

romm1/omnipay-payu
==================

PayU Russia driver for the Omnipay payment processing library

v3.0.1(7y ago)02.0k1MITPHP

Since Jun 8Pushed 7y agoCompare

[ Source](https://github.com/RomM1/omnipay-payu)[ Packagist](https://packagist.org/packages/romm1/omnipay-payu)[ Docs](https://github.com/RomM1/omnipay-payu)[ RSS](/packages/romm1-omnipay-payu/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Omnipay: PayU
=============

[](#omnipay-payu)

**PayU Russia driver for the Omnipay payment processing library**

[![Latest Stable Version](https://camo.githubusercontent.com/9505464f576074c7c698c00ae3e4458c97048bb2231f1297347d9ec6b6635803/68747470733a2f2f706f7365722e707567782e6f72672f726f6d6d312f6f6d6e697061792d706179752f76657273696f6e)](https://packagist.org/packages/romm1/omnipay-payu)[![Total Downloads](https://camo.githubusercontent.com/19ab235594a60e0b6f06a9ff55c11e498d493cbb59d14d312a71ba5f5b9a124c/68747470733a2f2f706f7365722e707567782e6f72672f726f6d6d312f6f6d6e697061792d706179752f642f746f74616c2e706e67)](https://packagist.org/packages/romm1/omnipay-payu)

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

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

[](#installation)

```
$ composer require romm1/omnipay-payu

```

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

[](#basic-usage)

1. Use Omnipay gateway class:

```
    use Omnipay\Omnipay;
```

2. Initialize PayU gateway:

```
    $gateway = Omnipay::create('PayU');
    $gateway->setMerchantName(env('MERCHANT_NAME'));
    $gateway->setSecretKey(env('SECRET_KEY'));
```

3. Call purchase, it will automatically redirect to PayU hosted page

```
    $purchase = $gateway->purchase([
            'amount' => 100,
            'transactionId' => 1,
            'orderDate' => date('Y-m-d H:i:s'),
            'items' => [
                new \Omnipay\PayU\Item([
                    'name' => 'Item',
                    'code' => 'ItemCode',
                    'price' => '100',
                    'priceType' => 'NET',
                    'quantity' => 1,
                    'vat' => 0,
                ]),
            ]
        ])->send();

    $purchase->redirect();
```

4. Create a webhook controller to handle the callback request at your `RESULT_URL` and catch the webhook as follows

```
    $gateway = Omnipay::create('PayU');
    $gateway->setMerchantName(env('MERCHANT_NAME'));
    $gateway->setSecretKey(env('SECRET_KEY'));

    $purchase = $gateway->completePurchase()->send();

    if ($purchase->isSuccessful()) {
        // Your logic

        return $purchase->completeResponse();
    }
```

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

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.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

2877d ago

### Community

Maintainers

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

---

Top Contributors

[![RomM1](https://avatars.githubusercontent.com/u/7438043?v=4)](https://github.com/RomM1 "RomM1 (14 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasepayupayu-russia

### Embed Badge

![Health badge](/badges/romm1-omnipay-payu/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

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

UnionPay gateway for Omnipay payment processing library

11358.1k2](/packages/lokielse-omnipay-unionpay)

PHPackages © 2026

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