simpleweb/RealEx

Name: RealEx

Owner: Simpleweb

Description: PHP library for communicating with RealEx for storing and processing credit cards using their Remote integration method.

Created: 2011-12-12 09:39:50.0

Updated: 2015-05-27 14:54:46.0

Pushed: 2011-12-12 09:59:55.0

Homepage: http://www.realexpayments.co.uk/integration-methods

Size: 96

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

RealEx PHP Library - Remote Integration method

By Tom Holder - http://www.simpleweb.co.uk

Overview

This is a PHP library designed for integration in to Zend Framework based projects (would be easy to adapt to work outside).

To Do

Better examples.

Add some automated tests.

Usage

Adding card:

$realex = new Realex_Eft();
$payer = new Realex_Payer();
$payer->ref = '1234'; //This is a reference you set for the card, you'd store this against the db for the user/card.

$rexCard = new Realex_Card($payer);
$rexCard->ref = $cc->realExRef;
$rexCard->number = '4444333322221111';
$rexCard->holder = 'MR TOM HOLDER';
$rexCard->expiry = '0412';
$rexCard->type = 'MC;

$response = $realex->NewCard($rexCard);

if ($response->result == 0) {
    echo 'woo!';
}

Need example for raising payment but in summary you use RaisePayment method passing in a Realex_Payment object that has been initiated with a payer and card.

License

This plugin is licensed under both the GPL and MIT licenses. Choose which ever one suits your project best.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.