Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 28, 2012 21:04
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/2230512 to your computer and use it in GitHub Desktop.
Save VantivSDK/2230512 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Void transaction
require 'LitleOnline'
include LitleOnline
#Void
void_info = {
#litleTxnId contains the Litle Transaction Id returned on the deposit/refund
'litleTxnId' => '100000000000000001',
}
response = LitleOnlineRequest.new.void(void_info)
#display results
puts "Response: " + response.voidResponse.response
puts "Message: " + response.voidResponse.message
puts "Litle Transaction ID: " + response.voidResponse.litleTxnId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment