- PHP 5.3 and above
- curl extension with support for OpenSSL
- PHPUnit 4.2.0 for running test suite (Optional)
- Composer (Optional)
You can install the library via Composer. Add this to your composer.json:
{
"require": {
"payu/card-info-v2": "1.*"
}
}
Then install via:
composer install
To use the library, include Composer's autoload:
require_once('vendor/autoload.php');
Obtain the latest version of the PayU Card Info V2 Client Library with:
git clone https://github.com/PayU/card-info-v2.git
To use the Library, add the following to your PHP script:
require_once __DIR__ . '/path/to/card-info-v2/src/init.php';
You can find usage examples in the examples directory:
- cardExample.php - Minimal requirements for getting card info based on a card number
- tokenExample.php - Minimal requirements for getting card info based on a card token