This repository contains a PHP implementation of the Vantiv DevHub API.
composer installto install dev dependencies like PhpUnit.- Optional: configure php with xdebug for code coverage analysis.
- Set environment variable
VANTIV_DEVHUB_LICENSEto a valid Vantiv DevHub license key suitable for testing. - Run
./vendor/bin/phpunit --testsuite Unit_Test, optionally with xdebug enabled to generate code coverage reports in build/logs/clover.xml.
- Copy
tests/example.config.initotests/config.iniand edit with your application's license key. - Run tests with
./vendor/bin/phpunit, optionally with xdebug enabled to generate code coverage reports in builds/logs/clover.xml. - See build/logs/devhubresults*.txt files for the results of DevHub certification tests.
- Instantiate a
Vantiv\Configurationobject with an array of config parameters:- api_version
- base_url
- license
- Instantiate a
Vantiv\Requestobject with theConfigurationobject. - Call the
Request->send()method with the following parameters:body- An array representing the DevHub request
category- 'payment', 'boarding', etc.
proxy- 'credit', 'check', 'services', etc.
endpoint- 'authorization', authorizationCompletion', 'credit', 'sale', 'return', 'void', 'force', 'reversal', 'verification', etc.
method- The HTTP method
query- Optional HTTP query parameters