Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 29, 2012 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VantivSDK/2243156 to your computer and use it in GitHub Desktop.
Save VantivSDK/2243156 to your computer and use it in GitHub Desktop.
PHP SDK-Litle Register Token Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Register an account number to receive a Litle Token
$token_info = array(
'orderId'=>'12344',
'id'=> '456',
'accountNumber'=>'1233456789103801');
$initilaize = &new LitleOnlineRequest();
$tokenResponse = $initilaize->registerTokenRequest($token_info);
#display results
echo ("Response: " . (XmlParser::getNode($tokenResponse ,'response')) . "<br>");
echo ("Message: " . XmlParser::getNode($tokenResponse ,'message') . "<br>");
echo ("Litle Transaction ID: " . XmlParser::getNode($tokenResponse ,'litleTxnId'). "<br>");
echo ("Litle Token: " . XmlParser::getNode($tokenResponse ,'litleToken'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment