2017 © Pedro Peláez
 

library omnipay-nabtransact

NAB Transact XML API gateway for the Omnipay payment processing library

image

pointybeard/omnipay-nabtransact

NAB Transact XML API gateway for the Omnipay payment processing library

  • Friday, April 22, 2016
  • by pointybeard
  • Repository
  • 1 Watchers
  • 2 Stars
  • 190 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Omnipay: NAB Transact

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

NAB Transact API driver for the Omnipay PHP payment processing library, (*2)

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements NAB Transact support for Omnipay., (*3)

IMPORTANT: This is a very early alpha release, so it's pretty rough, and is likely to be buggy. Please do not use this in production environments. If anyone wants to help me out, that would be awesome., (*4)

Installation

Omnipay is installed via Composer. To install, simply add it to your composer.json file:, (*5)

{
    "require": {
        "pointybeard/omnipay-nabtransact": "~0.1"
    }
}

And run composer to update your dependencies:, (*6)

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

Basic Usage

    include(__DIR__ . '/../vendor/autoload.php');
    use Omnipay\Omnipay;
    use Omnipay\Common as OmnipayCommon;

    $g = Omnipay::create('NABTransact_Periodic');
    $g->initialize([
        'merchantID' => 'XYZ0010',
        'password' => 'abcd1234',
        'testMode' => true,
    ]);

    // Add a customer
    $request = $g->createCard(['card' => [
            'number' => '4111111111111111',
            'expiryMonth' => '02',
            'expiryYear' => '18',
            'cvv' => '123',
        ]
    ]);
    $response = $request->send();

    // Update a customer
    $request = $g->updateCard([
        'customerReference' => $response->getCustomerReference(),
        'card' => [
            'number' => '4444333322221111',
            'expiryMonth' => '03',
            'expiryYear' => '16'
        ]
    ]);
    $response = $request->send();

    // Trigger a payment
    $request = $g->purchase([
        'customerReference' => $response->getCustomerReference(),
        'transactionReference' => 'Test Trigger of CC Payment',
        'amount' => '1234',
        'currency' => 'AUD',
    ]);

    $response = $request->send();

    // Delete a customer
    $request = $g->deleteCard(['customerReference' => $response->getCustomerReference()]);
    $response = $request->send();

For general usage instructions, please see the main Omnipay repository., (*7)

Out Of Scope

This currently supports the 'addcrn', 'editcrn', 'deletecrn' and 'trigger' actions of NAB's "Customer Management and Payment scheduling" XML API. Eventually it will support scheduling and triggering a DD payment., (*8)

It does not support the "XML API for Payments" API, however will eventually., (*9)

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*10)

The Versions

22/04 2016

dev-master

9999999-dev

NAB Transact XML API gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar pointybeard

payment pay gateway merchant omnipay nab nabtransact

07/09 2015

0.1.1

0.1.1.0

NAB Transact XML API gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar pointybeard

payment pay gateway merchant omnipay nab nabtransact

14/08 2015

0.1.0

0.1.0.0

NAB Transact XML API gateway for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar pointybeard

payment pay gateway merchant omnipay nab nabtransact