Created
March 9, 2012 15:46
-
-
Save VantivSDK/2007176 to your computer and use it in GitHub Desktop.
PHP SDK-Litle Authorization Transaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php'; | |
#Authorization | |
$auth_info = array( | |
'orderId' => '1', | |
'amount' => '10010', | |
'id'=> '456', | |
'orderSource'=>'ecommerce', | |
'billToAddress'=>array( | |
'name' => 'John Smith', | |
'addressLine1' => '1 Main St.', | |
'city' => 'Burlington', | |
'state' => 'MA', | |
'zip' => '01803-3747', | |
'country' => 'US'), | |
'card'=>array( | |
'number' =>'4457010000000009', | |
'expDate' => '0112', | |
'cardValidationNum' => '349', | |
'type' => 'VI') | |
); | |
$initilaize = new LitleOnlineRequest(); | |
$authResponse = $initilaize->authorizationRequest($auth_info); | |
#display results | |
echo ("Response: " . (XmlParser::getNode($authResponse,'response')) . "<br>"); | |
echo ("Message: " . XmlParser::getNode($authResponse,'message') . "<br>"); | |
echo ("Litle Transaction ID: " . XmlParser::getNode($authResponse,'litleTxnId')); |
How do I get the tokenResponse element and subsequently the litleToken child element? The documentation says the "element appears in the response only if a tokenized merchant submits card or eCheck account information in the transaction request" but does not explain what element to include in the transaction request.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
expDate here is equal to January 2012?
Thanks!