PHPackages                             pay-now/omnipay-paynow - 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. pay-now/omnipay-paynow

ActiveLibrary[Payment Processing](/categories/payments)

pay-now/omnipay-paynow
======================

Paynow gateway for Omnipay payment processing library

1.0.3(4y ago)13.0k↑25%1MITPHP

Since Sep 8Pushed 4y ago3 watchersCompare

[ Source](https://github.com/pay-now/omnipay-paynow)[ Packagist](https://packagist.org/packages/pay-now/omnipay-paynow)[ RSS](/packages/pay-now-omnipay-paynow/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (7)Used By (0)

Omnipay: Paynow
===============

[](#omnipay-paynow)

[![Build Status](https://camo.githubusercontent.com/8b3cc6fbd2816860c7e0af4b702be612316c4f9f3d341ec242cf07c765131f6e/68747470733a2f2f7472617669732d63692e636f6d2f7061792d6e6f772f6f6d6e697061792d7061796e6f772e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pay-now/omnipay-paynow)[![Latest Version](https://camo.githubusercontent.com/9a81baf63b536c4efe5b940e25384b8bbc6dfb26ef8a1b5ff03e22aa7676770e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7061792d6e6f772f6f6d6e697061792d7061796e6f772e7376673f7374796c653d666c61742d737175617265)](https://github.com/pay-now/omnipay-paynow/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

**Paynow 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. This package implements paynow support for Omnipay.

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

[](#installation)

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

```
composer require league/omnipay pay-now/omnipay-paynow

```

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

[](#basic-usage)

Making a payment:

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Paynow');
$gateway->setApiKey('api-key');
$gateway->setSignatureKey('signature-key');

$buyer = [
    'email' => 'jan.nowak@melements.pl',
    'firstName' => 'Jan',
    'lastName' => 'Nowak',
    'phone' => [
        'number' => '123123123',
        'prefix' => '+48'
    ],
    'locale'=> 'en-EN'
];

$items[] = [
    'name' => 'itemName',
    'quantity' => '12',
    'category' => 'toys',
    'price' => '123'
];

$paymentData = [
    'amount' => '10000',
    'description' => 'PLN',
    'returnUrl' => 'https://paynow.pl',
    'transactionId' => '123',
    'buyer' => $buyer,
    'items' => $items
];

try {
    $response = $gateway->purchase($paymentData)->send();
} catch (\Exception $e) {
    // catch errors
}
```

Handling notification with current payment status:

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Paynow');
$gateway->setApiKey('api-key');
$gateway->setSignatureKey('signature-key');

try {
    $response = $gateway->acceptNotification();
} catch (\Exception $e) {
    header('HTTP/1.1 400 Bad Request', true, 400);
}

header('HTTP/1.1 202 Accepted', true, 202);
```

Making a payment's refund

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Paynow');
$gateway->setApiKey('api-key');
$gateway->setSignatureKey('signature-key');

$refundData = [
    'amount' => '1000000',
    'transactionReference' => 'NOW8-CK5-C3E-ZDM',
    'reason' => 'RMA'
];

try {
    $response = $gateway->refund($refundData)->send();
} catch (\Exception $e) {
    // catch errors
}
```

Retrieving available payment methods

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('Paynow');
$gateway->setApiKey('api-key');
$gateway->setSignatureKey('signature-key');

$requestData = [
    'amount'=>'1000',
    'currency'=> 'PLN'
];

try {
    $response = $gateway->fetchPaymentMethods($requestData)->send();
} catch (\Exception $e) {
    // catch errors
}
```

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

Support
-------

[](#support)

If you have any questions or issues regarding paynow, please contact our support at .

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/thephpleague/omnipay-paypal/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

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.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 ~15 days

Total

4

Last Release

1660d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50012399?v=4)[melements](/maintainers/melements)[@melements](https://github.com/melements)

---

Top Contributors

[![michalskladanowski](https://avatars.githubusercontent.com/u/59174285?v=4)](https://github.com/michalskladanowski "michalskladanowski (15 commits)")[![emilleszczak2](https://avatars.githubusercontent.com/u/2837751?v=4)](https://github.com/emilleszczak2 "emilleszczak2 (2 commits)")

---

Tags

payment processingpaymentgatewaypaymerchantomnipaypaynow

### Embed Badge

![Health badge](/badges/pay-now-omnipay-paynow/health.svg)

```
[![Health](https://phpackages.com/badges/pay-now-omnipay-paynow/health.svg)](https://phpackages.com/packages/pay-now-omnipay-paynow)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

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

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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