SDK Void

Document created by gjsissons on May 6, 2016
Version 1Show Document
  • View in full screen mode

You can use a Void transaction to cancel a transaction that occurred during the same business day (a transaction that has not yet been settled). You can void Capture, Credit, and Sale transactions. Also, if you use Vantiv’s Recycling Engine, you can use the Void transaction to halt the recycling of a Sale transaction. In this case the response may include the Recycling Element.


PHP example


require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php';


$void_info = array(
        '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'));

Java example


import com.litle.sdk.*;
import com.litle.sdk.generate.*;

public class VoidExample {
    public static void main(String[] args) {
        com.litle.sdk.generate.Void theVoid = new com.litle.sdk.generate.Void();
        //litleTxnId contains the Litle Transaction Id returned on the deposit
        VoidResponse response = new LitleOnline().dovoid(theVoid);
        //Display Results
        System.out.println("Response: " + response.getResponse());
        System.out.println("Message: " + response.getMessage());
        System.out.println("Litle Transaction ID: " + response.getLitleTxnId());


.NET example


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Litle.Sdk;

//Void Transaction
class Example
         public static void Main(String[] args)
             //litleTxnId contains the Litle Transaction Id returned on the deposit
             LitleOnline litle = new LitleOnline();
             voidTxn newvoid = new voidTxn();
             newvoid.litleTxnId = 100000000000000000;
             litleOnlineResponseTransactionResponseVoidResponse voidResponse = litle.DoVoid(newvoid);
             //Display Results
             Console.WriteLine("Response: " + voidResponse.response);
             Console.WriteLine("Message: " + voidResponse.message);
             Console.WriteLine("Litle Transaction Id: " + voidResponse.litleTxnId);


Ruby example


require 'LitleOnline'
include LitleOnline

void_info = {
  #litleTxnId contains the Litle Transaction Id returned on the deposit/refund
  'litleTxnId' => '100000000000000001',

response =

#display results
puts "Response: " + response.voidResponse.response
puts "Message: " + response.voidResponse.message
puts "Litle Transaction ID: " + response.voidResponse.litleTxnId