Created
March 9, 2012 15:32
-
-
Save VantivSDK/2007034 to your computer and use it in GitHub Desktop.
PHP SDK- Litle Partial Capture
This file contains 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'; | |
#Partial Capture | |
#litleTxnId contains the Litle Transaction Id returned as part of the authorization | |
#submit the amount to capture which is less than the authorization amount | |
#to generate a partial capture | |
$capture_in = array( | |
'partial'=>'true', | |
'id'=> '456', | |
'litleTxnId'=>'320000000000000001', | |
'amount'=>'5005' | |
); | |
$initilaize = new LitleOnlineRequest(); | |
$captureResponse = $initilaize->captureRequest($capture_in); | |
#display results | |
echo ("Response: " . (XmlParser::getNode($captureResponse,'response')) . "<br>"); | |
echo ("Message: " . XmlParser::getNode($captureResponse,'message') . "<br>"); | |
echo ("Litle Transaction ID: " . XmlParser::getNode($captureResponse,'litleTxnId')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure to adjust the pathname, before running any tests