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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
By Tom Holder - http://www.simpleweb.co.uk
This is a PHP library designed for integration in to Zend Framework based projects (would be easy to adapt to work outside).
Better examples.
Add some automated tests.
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.
This plugin is licensed under both the GPL and MIT licenses. Choose which ever one suits your project best.