2017 © Pedro Peláez
 

library eway

A PHP library interacting with eWay API.

image

badcow/eway

A PHP library interacting with eWay API.

  • Monday, March 23, 2015
  • by samuelwilliams
  • Repository
  • 2 Watchers
  • 9 Stars
  • 241 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

eWay PHP API

This class is designed to make eWay payments very easy. Details about the API can be found on the eWay website, (*1)

Example usage

The example below utilises the eWay test gateway, (*2)

require_once __DIR__ . '/eWay/eWay.php';

use Badcow\eWay\eWay;

$eWay = new eWay('REAL_TIME_CVN', TRUE);

$eWay
    ->setCustomerID('87654321')
    ->setCardNumber('4444333322221111')
    ->setCardHoldersName('John Smith')
    ->setPaymentAmount(1.00)
    ->setCardExpiry('08', '09')
    ->setCVN('123')
    ->setCustomerFirstName('Firstname')
    ->setCustomerLastName('Lastname')
    ->setCustomerEmail('name@xyz.com.au')
    ->setCustomerAddress('123 Someplace Street, Somewhere ACT')
    ->setCustomerPostcode('2609')
    ->setCustomerInvoiceReference('INV120394')
    ->setCustomerInvoiceDescription('Testing')
    ->setCustomerTransactionReference('4230')
    ->setOption1('Option Number One')
    ->setOption2('Option Number Two')
    ->setOption3('Option Number Three')
    ;

$eWay->pay();

Each setter method will return the eway class allowing for chaining., (*3)

License

This software is free to use and distribute. Please see the license file., (*4)

The Versions

23/03 2015

dev-master

9999999-dev

A PHP library interacting with eWay API.

  Sources   Download

MIT

by Sam Williams

23/03 2015

v0.2

0.2.0.0

A PHP library interacting with eWay API.

  Sources   Download

MIT

by Sam Williams