The CardGate API client library is installed via Composer. To install, simply add it
to your composer.json
file:
{
"require": {
"cardgate/cardgate-clientlib-php": "~1.1.4"
}
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
You may also git clone or download the files manually, and include the client library in your project.
cardgate\api\Autoloader::register();
$oCardGate = new cardgate\api\Client( <merchant id>, '<merchant key>', TRUE );
If you believe you have found a bug, please report it using the GitHub issue tracker or contact us at tech@cardgate.com.