https://github.com/simpleweb/realex
PHP library for communicating with RealEx for storing and processing credit cards using their Remote integration method.
https://github.com/simpleweb/realex
Last synced: 9 months ago
JSON representation
PHP library for communicating with RealEx for storing and processing credit cards using their Remote integration method.
- Host: GitHub
- URL: https://github.com/simpleweb/realex
- Owner: simpleweb
- Created: 2011-12-12T09:39:50.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-12T09:59:55.000Z (over 14 years ago)
- Last Synced: 2025-04-03T01:41:26.379Z (about 1 year ago)
- Language: PHP
- Homepage: http://www.realexpayments.co.uk/integration-methods
- Size: 93.8 KB
- Stars: 4
- Watchers: 13
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RealEx PHP Library - Remote Integration method
==============================
By Tom Holder - [http://www.simpleweb.co.uk](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.