Created
March 28, 2012 21:16
-
-
Save VantivSDK/2230641 to your computer and use it in GitHub Desktop.
PHP SDK - Litle Capture Given Auth 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'; | |
#Capture Given Auth | |
$capture_info = array( | |
'id'=> '456', | |
'orderId'=>'12344', | |
'amount'=>'106', | |
'authInformation' => array( | |
'authDate'=>'2002-10-09', | |
'authCode'=>'543216', | |
'authAmount'=>'12345' | |
), | |
'orderSource'=>'ecommerce', | |
'card'=>array( | |
'type'=>'VI', | |
'number' =>'4100000000000001', | |
'expDate' =>'1210' | |
) | |
); | |
$initilaize = &new LitleOnlineRequest(); | |
$response = $initilaize->captureGivenAuthRequest($capture_info); | |
#display results | |
echo ("Response: " . (XmlParser::getNode($response,'response')) . "<br>"); | |
echo ("Message: " . XmlParser::getNode($response,'message') . "<br>"); | |
echo ("Litle Transaction ID: " . XmlParser::getNode($response,'litleTxnId')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment