This package is abandoned and no longer maintained. No replacement package was suggested.

A PHP library interacting with eWay API.

v0.2 2015-03-23 10:33 UTC

This package is auto-updated.

Last update: 2022-02-01 12:23:49 UTC


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

Example usage

The example below utilises the eWay test gateway

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

use Badcow\eWay\eWay;

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

    ->setCardHoldersName('John Smith')
    ->setCardExpiry('08', '09')
    ->setCustomerAddress('123 Someplace Street, Somewhere ACT')
    ->setOption1('Option Number One')
    ->setOption2('Option Number Two')
    ->setOption3('Option Number Three')


Each setter method will return the eway class allowing for chaining.


This software is free to use and distribute. Please see the license file.