Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 29, 2012 19:48
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/2242972 to your computer and use it in GitHub Desktop.
Save VantivSDK/2242972 to your computer and use it in GitHub Desktop.
PHP SDK-Litle Void Transaction
<?php
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';
#Void
$void_info = array(
'litleTxnId'=>'100000000000000001',
'id'=> '456'
);
$initilaize = &new LitleOnlineRequest();
$voidResponse = $initilaize->voidRequest($void_info);
#display results
echo ("Response: " . (XmlParser::getNode($voidResponse ,'response')) . "<br>");
echo ("Message: " . XmlParser::getNode($voidResponse ,'message') . "<br>");
echo ("Litle Transaction ID: " . XmlParser::getNode($voidResponse ,'litleTxnId'));
@bigonese
Copy link

bigonese commented Dec 7, 2013

Just a heads up, the link to this gist is broken...
It seems like this gist should be linked at the bottom of this page (see the Void PHP Example link): http://litleco.github.io/processing-overview/
(instead it links to a non-existent gist)

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