Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 9, 2012 15:32
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/2007034 to your computer and use it in GitHub Desktop.
Save VantivSDK/2007034 to your computer and use it in GitHub Desktop.
PHP SDK- Litle Partial Capture
<?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'));
@VantivSDK
Copy link
Author

Please make sure to adjust the pathname, before running any tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment