Create a gist now

Instantly share code, notes, and snippets.

PHP SDK- Litle Capture Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Capture
#litleTxnId contains the Litle Transaction Id returned on the authorization
$capture_info = array(
'litleTxnId'=>'100000000000000001',
'id'=> '456',
);
$initilaize = new LitleOnlineRequest();
$captureResponse = $initilaize->captureRequest($capture_info);
#display results
echo ("Response: " . (XmlParser::getNode($captureResponse,'response')) . "<br>");
echo ("Message: " . XmlParser::getNode($captureResponse,'message') . "<br>");
echo ("Litle Transaction ID: " . XmlParser::getNode($captureResponse,'litleTxnId'));
@litleSDK
Owner
litleSDK commented Mar 9, 2012

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