2017-25 © Pedro Peláez
 

library omnipay-payway

Westpac PayWay gateway for Omnipay payment processing library. Fork of moult/omnipay-payway

image

andrewturner/omnipay-payway

Westpac PayWay gateway for Omnipay payment processing library. Fork of moult/omnipay-payway

  • Monday, December 19, 2016
  • by andrewturner
  • Repository
  • 1 Watchers
  • 0 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

omnipay-payway

This is a plugin for omnipay/omnipay for the Westpac PayWay system. View their readme for more information., (*1)

It is currently incomplete (unit tests need writing, and only supports purchase(), but “works for me”., (*2)

Example usage

<?php

include 'vendor/autoload.php';

use Omnipay\Omnipay;
use Omnipay\Common\CreditCard;

$gateway = Omnipay::create('Payway');

$gateway->setUsername('REPLACE');
$gateway->setPassword('REPLACE');
$gateway->setMerchant('REPLACE');
$gateway->setCertificate('/PATH/TO/FILE/ccapi.pem');

$card = new CreditCard(array(
    'number' => '4564710000000004',
    'cvv' => '847',
    'expiryMonth' => '02',
    'expiryYear' => '19',
    'firstName' => 'Dion',
    'lastName' => 'Moult'
));

$request = $gateway->purchase(array(
    'transactionId' => '01',
    'amount' => '1.00',
    'card' => $card,
    'currency' => 'AUD'
));

$response = $request->send();

var_dump($response->isSuccessful());
var_dump($response->isRedirect());
var_dump($response->getTransactionReference());
var_dump($response->getMessage());
var_dump($response->getResponseCode());

The Versions

19/12 2016

dev-master

9999999-dev https://github.com/Moult/omnipay-payway

Westpac PayWay gateway for Omnipay payment processing library. Fork of moult/omnipay-payway

  Sources   Download

MIT

The Requires

 

The Development Requires

payment pay gateway merchant purchase omnipay payway westpac