2017 © Pedro Peláez
 

library payments-sdk

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

image

litle/payments-sdk

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  • Friday, July 13, 2018
  • by litleSDK
  • Repository
  • 54 Watchers
  • 20 Stars
  • 16,110 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 29 Forks
  • 1 Open issues
  • 44 Versions
  • 34 % Grown

The README.md

Vantiv eCommerce PHP SDK

, (*1)

Important Support Note

, (*2)

Worldpay provides SDK updates for releases in the latest major version stream. We do not provide SDK updates to older releases, unless mandated by the card brands. All SDKs are open source, allowing you to update older versions as needed., (*3)

WARNING:

All major version changes require recertification to the new version. Once certified for the use of a new version, Vantiv modifies your Merchant Profile, allowing you to submit transaction to the Production Environment using the new version. Updating your code without recertification and modification of your Merchant Profile will result in transaction declines. Please consult you Implementation Analyst for additional information about this process.

About Vantiv eCommerce

Vantiv eCommerce powers the payment processing engines for leading companies that sell directly to consumers through internet retail, direct response marketing (TV, radio and telephone), and online services. Vantiv eCommerce is the leading authority in card-not-present (CNP) commerce, transaction processing and merchant services., (*4)

About this SDK

No major updates are planned for this repository. SDK Version 12 and above can be found here: cnp-sdk-for-php

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce. XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce. This SDK utilizes the HTTPS protocol to securely connect to Vantiv eCommerce. Using the SDK requires coordination with the Vantiv eCommerce team in order to be provided with credentials for accessing our systems., (*5)

Each PHP SDK release supports all the functionality present in the associated Vantiv eCommerce XML version (e.g., SDK v9.3.2 supports Vantiv eCommerce XML v9.3). Please see the online copy of our XSD for Vantiv eCommerce XML to get more details on what the Vantiv eCommerce payments engine supports., (*6)

This SDK was implemented to support the PHP programming language and was created by Vantiv eCommerce. Its intended use is for online transaction processing utilizing your account on the Vantiv eCommerce payments engine., (*7)

See LICENSE file for details on using this software., (*8)

Source Code available from : https://github.com/LitleCo/litle-sdk-for-php, (*9)

Please contact Vantiv eCommerce to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. We are reachable at sdksupport@fisglobal.com, (*10)

SDK PHP Dependencies

Up to date list available at Packagist, (*11)

Setup

Using with composer

If you are using a composer to manage your dependencies, you can do the following in your project directory:, (*12)

1) Install the composer using command:, (*13)

curl -sS https://getcomposer.org/install | php, (*14)

2) Install dependencies using the command:, (*15)

php composer.phar install, (*16)

3) Configure the SDK:, (*17)

cd litle/sdk php Setup.php, (*18)

4) Run the attached sample:, (*19)

<?php
require_once _DIR_.'/vendor/autoload.php';
#sale
$sale_info = array(
         'id' => '456',
             'orderId' => '1',
             'amount'  => '10010',
             'orderSource' => 'ecommerce',
             'billToAddress' => array(
             'name' => 'John Smith' ,
             'addressLine1' => ' 1 Main St.',
             'city' => 'Burlington' ,
             'state' => 'MA' ,
             'zip' => '0183-3747',
             'country' => 'US'),
             'card' => array(
             'number' => '5112010000000003',
             'expDate' => '0112',
             'cardValidationNum' => '349',
             'type' => 'MC' )
            );
$initialize = new litle\sdk\LitleOnlineRequest();
$saleResponse =$initialize->saleRequest($sale_info);
#display results
echo ("Response: " . (litle\sdk\XmlParser::getNode($saleResponse,'response')) . "<br>");
echo ("Message: " . litle\sdk\XmlParser::getNode($saleResponse,'message') . "<br>");
echo ("Vantiv eCommerce Transaction ID: " . litle\sdk\XmlParser::getNode($saleResponse,'litleTxnId'));

php your_sample_name, (*20)

Using without composer

If you're not, you have to add a require for each and every class that's going to be used., (*21)

1) Configure the SDK, (*22)

cd into litle/sdk php Setup.php, (*23)

2) Add the litle folder and require the path for your file, (*24)

3) run your file, (*25)

php your_file, (*26)

Clone Repo

1) Install the LitleOnline PHP SDK from git., (*27)

git clone git://github.com/LitleCo/litle-sdk-for-php.git, (*28)

php ~/composer.phar install, (*29)

2) Once the SDK is downloaded run our setup program to generate a configuration file., (*30)

cd litle-sdk-for-php/lib, (*31)

php Setup.php, (*32)

Running the above commands will create a configuration file in the lib directory., (*33)

3) Create a symlink to the SDK, (*34)

ln -s /path/to/sdk /var/www/html/nameOfLink, (*35)

4.) Create a php file similar to:, (*36)

<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';  
    // Visa $10.00 sale
    $hash_in = array(
          'amount'=>'106',
          'orderId' => '123213',
          'orderSource'=>'ecommerce',
          'card'=>array(
          'type'=>'VI',
          'number' =>'4100000000000001',
         'expDate' =>'1000')
          );
//Perform the transaction on the Vantiv eCommerce Platform
$initialize = new LitleOnlineRequest();
$saleResponse = $initialize->saleRequest($hash_in);

// Display Result 
echo ("Message: " . XMLParser::getNode($saleResponse,'message') . "<br>");
echo ("Vantiv eCommerce Transaction ID: " . XMLParser::getNode($saleResponse,'litleTxnId'));

As of 8.13.1, you may also use a tree-oriented style to get the response values:, (*37)

<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';  
    // Visa $10.00 sale
    $hash_in = array(
          'amount'=>'106',
          'orderId' => '123213',
          'orderSource'=>'ecommerce',
          'card'=>array(
          'type'=>'VI',
          'number' =>'4100000000000001',
         'expDate' =>'1000')
          );
//Perform the transaction on the Vantiv eCommerce Platform
$initialize = new LitleOnlineRequest($treeResponse=true);
$saleResponse = $initialize->saleRequest($hash_in);

// Display Result 
echo ("Message: " . $saleResponse->saleResponse->message . "<br>");
echo ("Vantiv eCommerce Transaction ID: " . $saleResponse->saleResponse->litleTxnId);

NOTE: you may have to change the path to match that of your filesystems., (*38)

If you get an error like:, (*39)

PHP Fatal error:  require_once(): Failed opening required '/home/gdake/git/litle-sdk-for-php/../lib/LitleONline.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/gdake/git/litle-sdk-for-php/foo.php on line 2

You need to change the second line of your script to load the real location of LitleOnline.php, (*40)

If you get an error like:, (*41)

PHP Fatal error:  require(): Failed opening required '/home/gdake/litle-sdk-for-php/lib/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/gdake/litle-sdk-for-php/lib/LitleOnline.php on line 42

You probably had a problem with composer. You can safely remove line 42 if you are not using batch processing, or you can edit it to point at our dependencies that you've downloaded in another way., (*42)

5) Next run this file using php on the command line or inside a browser. You should see the following result provided you have connectivity to the Litle certification environment. You will see an HTTP error if you don't have access to the Litle URL, (*43)

Message: Valid Format
Vantiv eCommerce Transaction ID: <your-numeric-txn-id>

More examples can be found here [php Gists])(https://gist.github.com/litleSDK), (*44)

Please contact Litle & Co. with any further questions. You can reach us at SDKSupport@Vantiv.com, (*45)

The Versions

13/07 2018

10.0.x-dev

10.0.9999999.9999999-dev https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

13/07 2018

9.0.x-dev

9.0.9999999.9999999-dev https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

13/07 2018

8.0.x-dev

8.0.9999999.9999999-dev https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

06/06 2018

11.0.x-dev

11.0.9999999.9999999-dev https://developer.vantiv.com/community/ecommerce

The Vantiv eCommerce PHP SDK is a PHP implementation of the [Vantiv eCommerce](https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce cnp vantiv

24/04 2018

8.31.1

8.31.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

09/04 2018

11.4.0

11.4.0.0 https://developer.vantiv.com/community/ecommerce

The Vantiv eCommerce PHP SDK is a PHP implementation of the [Vantiv eCommerce](https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments ecommerce cnp vantiv

02/04 2018

9.14.0

9.14.0.0 https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

31/03 2018

8.31.0

8.31.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

16/03 2018

10.1.x-dev

10.1.9999999.9999999-dev https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

16/03 2018

10.1.1

10.1.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

16/03 2018

11.0.3

11.0.3.0 https://developer.vantiv.com/community/ecommerce

The Vantiv eCommerce PHP SDK is a PHP implementation of the [Vantiv eCommerce](https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments ecommerce cnp vantiv

01/09 2017

dev-master

9999999-dev https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

18/08 2017

11.0.2

11.0.2.0 https://developer.vantiv.com/community/ecommerce

The Vantiv eCommerce PHP SDK is a PHP implementation of the [Vantiv eCommerce](https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments ecommerce cnp vantiv

18/08 2017

9.13.1

9.13.1.0 https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

18/08 2017

8.29.4

8.29.4.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

03/08 2017

9.13.0

9.13.0.0 https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(https://developer.vantiv.com/community/ecommerce). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

04/05 2017

11.0.1

11.0.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

04/05 2017

9.12.1

9.12.1.0 https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

11/04 2017

11.0

11.0.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

20/03 2017

9.12.0

9.12.0.0 https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_PHP_SDK

The Vantiv eCommerce PHP SDK is a PHP implementation of the Vantiv eCommerce(http://www.vantiv.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Vantiv eCommerce

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce vantiv

06/03 2017

9.10.1

9.10.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

03/03 2017

9.10.0

9.10.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

27/05 2016

8.29.3

8.29.3.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

27/05 2016

9.3.4

9.3.4.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

14/01 2016

10.1

10.1.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

30/04 2015

8.29.2

8.29.2.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

30/04 2015

9.3.3

9.3.3.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

01/04 2015

8.29.1

8.29.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

31/03 2015

9.3.2

9.3.2.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

09/03 2015

9.3.1

9.3.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

17/02 2015

9.3.0

9.3.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

29/01 2015

8.29.0

8.29.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

05/11 2014

8.27.1

8.27.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

05/11 2014

9.0.1

9.0.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

26/08 2014

8.25.4

8.25.4.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

26/08 2014

8.27.0

8.27.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

06/06 2014

8.25.1

8.25.1.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

07/03 2014

8.25.0

8.25.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

07/03 2014

8.24.0

8.24.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

18/12 2013

8.23.0

8.23.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

18/12 2013

8.22.0

8.22.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

18/12 2013

8.21.0

8.21.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

17/12 2013

8.20.0

8.20.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

 

The Development Requires

sdk payments litle ecommerce

30/07 2013

8.19.0

8.19.0.0 https://www.litle.com/developers/php

The Litle PHP SDK is a PHP implementation of the [Litle & Co.](http://www.litle.com). XML API. This SDK was created to make it as easy as possible to connect process your payments with Litle

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

sdk payments litle ecommerce