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

ActiveLibrary[Payment Processing](/categories/payments)

sylapi/omnipay-payu
===================

Paylane gateway for Omnipay payment processing library

v1.0.6(5y ago)01.8k1MITPHP

Since Jan 23Pushed 3y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (7)Used By (0)

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

[](#omnipay-payu)

**Paylane driver 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 Dummy support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "sylapi/payu": "~1.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

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

[](#basic-usage)

The following gateways are provided by this package:

- PayU

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

### Basic purchase example

[](#basic-purchase-example)

```
$gateway = \Omnipay\Omnipay::create('PayU');
$gateway->setPosId('--Merchant Pos Id--');
$gateway->setClientSecret('--Client Secret--');
$gateway->setSecondKey('--Second key--');
$gateway->setIp('--IP--');

$response = $gateway->purchase(
    [
        "amount" => "10.00",
        "currency" => "PLN",
        "description" => "My Payment",
        "transactionId" => "12345",
        "email" => "email@example.com",
        "name" => "Jan Kowalski",
        "payMethod" => "m",
        "items" => [
            [
                "name" => "Product name",
                "price" => "10.00",
                "quantity" => 1
            ]
        ],
        "returnUrl" => "https://example.org/payu-success.php",
        "cancelUrl" => "https://example.org/payu-error.php",
        "notifyUrl" => "https://example.org/payu-callback.php",
    ]
)->send();

// Process response
if ($response->isSuccessful()) {

    if ($response->isRedirect()) {
        $response->redirect();
    }
    else {
        $data = $response->getData();
    }
}
else {
    $error = $response->getMessage();
    $code = $response->getCode();
}
```

### Basic purchase success example

[](#basic-purchase-success-example)

```
$response = $gateway->completePurchaseNotify($_POST);

if ($response->isSuccessful()) {

    $message = $response->getMessage();
    $status = $response->getStatus();
}
else {
    $error = $response->getMessage();
    $code = $response->getCode();
}
```

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.

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

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~9 days

Total

6

Last Release

2103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8284e979dcbb9e6ff013f3e04f2c3f0a3de8f62fad97e12383155779b0adee23?d=identicon)[sylapi](/maintainers/sylapi)

---

Top Contributors

[![azapotoczny2000](https://avatars.githubusercontent.com/u/59831278?v=4)](https://github.com/azapotoczny2000 "azapotoczny2000 (5 commits)")[![rogal127](https://avatars.githubusercontent.com/u/37405360?v=4)](https://github.com/rogal127 "rogal127 (4 commits)")[![webard](https://avatars.githubusercontent.com/u/855788?v=4)](https://github.com/webard "webard (4 commits)")[![girni](https://avatars.githubusercontent.com/u/23078892?v=4)](https://github.com/girni "girni (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasepayu

### Embed Badge

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

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

###  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)
