PHPackages                             ubitransports/omnipay-payzen - 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. ubitransports/omnipay-payzen

ActiveLibrary[Payment Processing](/categories/payments)

ubitransports/omnipay-payzen
============================

PayZen driver for the Omnipay payment processing library

v3.2.0(2y ago)040.6k3[5 PRs](https://github.com/ubitransports/omnipay-payzen/pulls)MITPHPPHP ^8

Since Jun 7Pushed 2y ago5 watchersCompare

[ Source](https://github.com/ubitransports/omnipay-payzen)[ Packagist](https://packagist.org/packages/ubitransports/omnipay-payzen)[ Docs](https://github.com/ubitransports/omnipay-payzen)[ RSS](/packages/ubitransports-omnipay-payzen/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (5)Versions (25)Used By (0)

Omnipay: PayZen
===============

[](#omnipay-payzen)

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

[![Build Status](https://camo.githubusercontent.com/0578584cde2ecaf0331f73da5cacee9f5dcfdeb9f79f0aeca8c727d50ccd3060/68747470733a2f2f7472617669732d63692e6f72672f7562697472616e73706f7274732f6f6d6e697061792d7061797a656e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/ubitransports/omnipay-payzen)[![Latest Stable Version](https://camo.githubusercontent.com/07ad0db4c82206e5aa2ffd03645d44e2ba8a2999e9f7d1f4005551c914567b17/68747470733a2f2f706f7365722e707567782e6f72672f7562697472616e73706f7274732f6f6d6e697061792d7061797a656e2f76657273696f6e2e706e67)](https://packagist.org/packages/ubitransports/omnipay-payzen)[![Total Downloads](https://camo.githubusercontent.com/a6e1932a2d20bdabda4835b39010e322e5f8693c1708273ff3b4efbb228bc8db/68747470733a2f2f706f7365722e707567782e6f72672f7562697472616e73706f7274732f6f6d6e697061792d7061797a656e2f642f746f74616c2e706e67)](https://packagist.org/packages/ubitransports/omnipay-payzen)

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

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

[](#installation)

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

```
{
    "require": {
        "ubitransports/omnipay-payzen": "dev-master"
    }
}
```

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:

- PayZen

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

### Advanced Usage

[](#advanced-usage)

#### Saving Cards

[](#saving-cards)

##### Creating a token during payment

[](#creating-a-token-during-payment)

```
$paymentParams = array(
    ...
    'createCard' => true,
    'ownerReference' => 'an owner reference',
));
$purchaseRequest = $gateway->purchase($paymentParams);
$redirectResponse = $purchaseRequest->send();
```

##### Creating a token without payment

[](#creating-a-token-without-payment)

```
$paymentParams = array(
    ...
    'ownerReference' => 'an owner reference',
));
$createCardRequest = $gateway->createCard($paymentParams);
$redirectResponse = $createCardRequest->send();
```

##### Retrieve a token in the purchase payzen callback reponse

[](#retrieve-a-token-in-the-purchase-payzen-callback-reponse)

```
$paymentParams = array(
    ...
));
$completePurchaseRequest = $gateway->completePurchase($paymentParams);
$callbackResponse = $completePurchaseRequest->send();
if ($callbackResponse->hasCreatedCard()) {
    $cardReference = $callbackResponse->getCardReference();
    $ownerReference = $callbackResponse->getOwnerReference();
}
```

#### Paying using saved Cards

[](#paying-using-saved-cards)

```
$paymentParams = array(
    ...
    'cardReference' => 'XXXXXXXXXX',
));
$purchaseRequest = $gateway->purchase($paymentParams);
$redirectResponse = $purchaseRequest->send();
```

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/omnipay/securepay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

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

Recently: every ~147 days

Total

17

Last Release

902d ago

Major Versions

1.1.0 → 2.0.02019-01-08

1.4.0 → 2.2.02021-01-05

1.9.0 → v3.0.02023-01-04

PHP version history (4 changes)1.2.0PHP ^5.4||^7.0

v3.0.0PHP ^5.4||^7.0||^8.0

v3.1.0PHP ^7.2|^8

v3.2.0PHP ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a52f9fa62f3d1a5c7a08dd53176c29dd3875d460a13516e3117304a58bf0f73?d=identicon)[aschelch](/maintainers/aschelch)

---

Top Contributors

[![bjmmartin](https://avatars.githubusercontent.com/u/28708192?v=4)](https://github.com/bjmmartin "bjmmartin (12 commits)")[![yhelin](https://avatars.githubusercontent.com/u/39909091?v=4)](https://github.com/yhelin "yhelin (11 commits)")[![everneret](https://avatars.githubusercontent.com/u/15886055?v=4)](https://github.com/everneret "everneret (7 commits)")[![iliyan-handzhiyski](https://avatars.githubusercontent.com/u/105852682?v=4)](https://github.com/iliyan-handzhiyski "iliyan-handzhiyski (2 commits)")[![aschelch](https://avatars.githubusercontent.com/u/2005559?v=4)](https://github.com/aschelch "aschelch (2 commits)")[![arnaudcharmier](https://avatars.githubusercontent.com/u/3929222?v=4)](https://github.com/arnaudcharmier "arnaudcharmier (2 commits)")[![mmanov-proxiad](https://avatars.githubusercontent.com/u/113603601?v=4)](https://github.com/mmanov-proxiad "mmanov-proxiad (1 commits)")[![nicofieri](https://avatars.githubusercontent.com/u/13865808?v=4)](https://github.com/nicofieri "nicofieri (1 commits)")[![p-pichet](https://avatars.githubusercontent.com/u/74591409?v=4)](https://github.com/p-pichet "p-pichet (1 commits)")[![ddimitrov-ubitransport](https://avatars.githubusercontent.com/u/101876316?v=4)](https://github.com/ddimitrov-ubitransport "ddimitrov-ubitransport (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypayzen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ubitransports-omnipay-payzen/health.svg)

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

###  Alternatives

[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

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

PHPackages © 2026

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