PHPackages                             digitickets/omnipay-abstract-voucher - 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. digitickets/omnipay-abstract-voucher

ActiveLibrary[Payment Processing](/categories/payments)

digitickets/omnipay-abstract-voucher
====================================

Abstract gateway driver for vouchers, extending the omnipay gateway

v2.0.0(6y ago)250.4k↓41.5%14MITPHPPHP ^7

Since Dec 8Pushed 6y ago2 watchersCompare

[ Source](https://github.com/digitickets/omnipay-abstract-voucher)[ Packagist](https://packagist.org/packages/digitickets/omnipay-abstract-voucher)[ Docs](https://github.com/digitickets/omnipay-abstract-voucher)[ RSS](/packages/digitickets-omnipay-abstract-voucher/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (4)

omnipay-abstract-voucher
========================

[](#omnipay-abstract-voucher)

**DigiTickets abstract voucher driver, extending the Omnipay PHP payment processing library**

Provides class(es) and interface(s) for Omnipay Voucher driver repos to use.

This repo allows other repos to handle voucher redemption/unredemption in a standard way, whilst also following the Omnipay standards, meaning that vouchers can be treated like any other payment method.

For example, repos that use this repo must implement the validate() and redeem() methods, but conceptually, the Omnipay purchase() method is the combination of those two methods.

In simple terms, a sub class would implement the voucher-specific methods, and then implement the Omnipay methods essentially as wrappers around them.

[![Build Status](https://camo.githubusercontent.com/ec53ce508587f0b3a51cd5e6127898b47a64742caeeb3cff85291a722a3d3ac3/68747470733a2f2f7472617669732d63692e6f72672f646967697469636b6574732f6f6d6e697061792d61627374726163742d766f75636865722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/digitickets/omnipay-abstract-voucher)[![Coverage Status](https://camo.githubusercontent.com/21a8612d11346809d39c4dec9f745e97fe018dd776b548347f760f2afb21670b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646967697469636b6574732f6f6d6e697061792d61627374726163742d766f75636865722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/digitickets/omnipay-abstract-voucher?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/6b421517a2c259657e82a4d94131543eb6d7be1802f449a676a987d6a6163041/68747470733a2f2f706f7365722e707567782e6f72672f646967697469636b6574732f6f6d6e697061792d61627374726163742d766f75636865722f76657273696f6e2e706e67)](https://packagist.org/packages/digitickets/omnipay-abstract-voucher)[![Total Downloads](https://camo.githubusercontent.com/9e1793a56c0ef77ff5f8c9d12d0ef242c05042e1223cba04a2fdeb6c301d3ca1/68747470733a2f2f706f7365722e707567782e6f72672f646967697469636b6574732f6f6d6e697061792d61627374726163742d766f75636865722f642f746f74616c2e706e67)](https://packagist.org/packages/digitickets/omnipay-abstract-voucher)

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

[](#installation)

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

```
{
    "require": {
        "digitickets/omnipay-abstract-voucher": "~1.0"
    }
}
```

And run composer to update your dependencies:

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

```

What's Included
---------------

[](#whats-included)

This repo defines certain methods that any voucher gateway must implement, and defines methods that will exist in the response objects.

What's Not Included
-------------------

[](#whats-not-included)

The code in this repo does not actually do anything. It is meant to be common code/interfaces that other repos will use.

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

[](#basic-usage)

Extend the abstract gateway in this class and implement the voucher-specific methods. Then implement the Omnipay methods.

For general Omnipay usage instructions, please see the main [Omnipay](https://github.com/omnipay/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 believe you have found a bug in this driver, please report it using the [GitHub issue tracker](https://github.com/digitickets/omnipay-abstract-voucher/issues), or better yet, fork the library and submit a pull request.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

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

Total

3

Last Release

2552d ago

Major Versions

1.1.0-beta → v2.0.02019-05-23

### Community

Maintainers

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

---

Top Contributors

[![pedanticantic](https://avatars.githubusercontent.com/u/7499073?v=4)](https://github.com/pedanticantic "pedanticantic (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipayvoucherDigiTickets

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/digitickets-omnipay-abstract-voucher/health.svg)

```
[![Health](https://phpackages.com/badges/digitickets-omnipay-abstract-voucher/health.svg)](https://phpackages.com/packages/digitickets-omnipay-abstract-voucher)
```

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