Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 28, 2012 21:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VantivSDK/2230606 to your computer and use it in GitHub Desktop.
Save VantivSDK/2230606 to your computer and use it in GitHub Desktop.
PHP SDK - Litle Auth Reversal transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Auth Reversal
#litleTxnId contains the Litle Transaction Id returned on the authorization
$authRev_info = array(
'litleTxnId'=>'350000000000000001',
'id'=> '456'
);
$initilaize = &new LitleOnlineRequest();
$reversalResponse = $initilaize->authReversalRequest($authRev_info);
#display results
echo ("Response: " . (XmlParser::getNode($reversalResponse,'response')) . "<br>");
echo ("Message: " . XmlParser::getNode($reversalResponse,'message') . "<br>");
echo ("Litle Transaction ID: " . XmlParser::getNode($reversalResponse,'litleTxnId'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment