digitickets/omnipay-digitickets-voucher

Payment Gateway driver for DigiTickets vouchers

v2.1.1 2024-02-14 15:51 UTC

README

DigiTickets voucher driver for the Omnipay PHP payment processing library

Omnipay implementation of the DigiTickets voucher payment gateway.

Build Status Coverage Status Latest Stable Version Total Downloads

Installation

Important: Driver requires PHP's Intl extension and PHP's SOAP extension to be installed.

The DigiTickets voucher Omnipay driver is installed via Composer. To install, simply add it to your composer.json file:

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

And run composer to update your dependencies:

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

What's Included

This driver handles transactions being processed by DigiTickets vouchers, ie voucher redemption.

It also handle refunds (voucher unredemption).

What's Not Included

N/A

Basic Usage

For general Omnipay usage instructions, please see the main Omnipay repository.

You may add debug logging by attaching a callback like so:

$gateway->registerLoggerCallback(
    function ($msg, $data) use ($logger) {
        try {
            $logger->info($msg, ['data' => $data]);
        } catch (\Throwable $ex) {
            error_log($ex);
        }
    }
);

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag 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, or better yet, fork the library and submit a pull request.