Skip to content

PayU-EMEA/card-info-client-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis CI Latest Stable Version Total Downloads License

Prerequisites

  • PHP 5.3 and above
  • curl extension with support for OpenSSL
  • PHPUnit 4.2.0 for running test suite (Optional)
  • Composer (Optional)

Composer

You can install the library via Composer.

  1. Method #1
  • Run
composer require payu/card-info-client-php
  1. Method #2
  • Add this to your composer.json
    {
      "require": {
        "payu/card-info-client-php": "^0.1.0"
      }
    }
  • Then install via:
    composer install

To use the library, include Composer's autoload:

require_once('vendor/autoload.php');

To use the examples, add the following to the example script:

require_once('/path/to/vendor/autoload.php');

Manual Installation

Obtain the latest version of the PayU Card Info V2 Client Library with:

git clone https://github.com/PayU/card-info-client-php.git

To use the Library, add the following to your PHP script:

require_once __DIR__ . '/path/to/card-info-client-php/src/init.php';

To use the examples, add the following to the example script:

require_once __DIR__ . '/../src/init.php';

Getting Started

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