agmscode / agms_php_lite
Agms PHP Lite Library
v0.2.0
2015-06-24 03:50 UTC
Requires
- php: >=5.2.1
- ext-curl: *
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~1.4
This package is not auto-updated.
Last update: 2024-11-09 18:45:27 UTC
README
Agms Php Lite Library
Requirements
PHP 5.1 and later.
Installation
Download the latest release. Then, include the agms.php
file.
require_once('/path/to/agms_php_lite/agms.php');
Getting Started
Simple usage looks like:
Agms::setUsername('your username');
Agms::setPassword('your password');
$params = array(
'TransactionType' => 'sale'
'CCNumber' => '4111111111111111',
'CC_exp_date' => '1220',
'CVV' => 123,
'Amount' => '20'
);
$response = Agms::process($params);
echo $response;
Documentation
Please see http://onlinepaymentprocessing.com/docs/ for up-to-date documentation.
Tests
In order to run tests first install PHPUnit via Composer:
composer update --dev
To run the test suite:
./vendor/bin/phpunit