2017 © Pedro Peláez
 

library omnipay-invoice

Invoice driver for the Omnipay payment processing library

image

seymourlabs/omnipay-invoice

Invoice driver for the Omnipay payment processing library

  • Thursday, June 29, 2017
  • by andrew-s
  • Repository
  • 1 Watchers
  • 0 Stars
  • 566 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 38 % Grown

The README.md

Omnipay: Invoice

Generate invoice numbers via the transaction call as a driver for the Omnipay PHP payment processing library, (*1)

Latest Stable Version Total Downloads, (*2)

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

Installation

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

{
    "require": {
        "seymourlabs/omnipay-invoice": "~1.0"
    }
}

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

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

Basic Usage

// Create a gateway for the Invoice Gateway
// (routes to GatewayFactory::create)
$gateway = \Omnipay\Omnipay::create('Invoice');

// Initialise the gateway
$gateway->initialize([
    'testMode' => true, // Test mode prepends "TEST:" into the invoice number
]);


// Do an authorize transaction on the gateway
$transaction = $gateway->authorize([
    'amount'                   => '10.00',
    'currency'                 => 'GBP',
]);

// optional prefix assignment
$transaction->setPrefix('ABC');

$response = $transaction->send();
if ($response->isSuccessful()) {
    echo "Authorize transaction was successful!\n";
    $sale_id = $response->getTransactionReference();
    echo "Transaction reference = " . $sale_id . "\n";
}

The Versions

29/06 2017

dev-master

9999999-dev https://github.com/seymourlabs/omnipay-invoice

Invoice driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay invoice

29/06 2017

1.0

1.0.0.0 https://github.com/seymourlabs/omnipay-invoice

Invoice driver for the Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant omnipay invoice