Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 28, 2012 20:52
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/2230415 to your computer and use it in GitHub Desktop.
Save VantivSDK/2230415 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Auth Reversal transaction
require 'LitleOnline'
include LitleOnline
#Auth Reversal
#litleTxnId contains the Litle Transaction Id returned on the authorization
reversal_info = {'litleTxnId' => '100000000000000001'}
reversal_response = LitleOnlineRequest.new.auth_reversal(reversal_info)
#display results
puts "Response: " + reversal_response.reversalResponse.response
puts "Message: " + reversal_response.reversalResponse.message
puts "Litle Transaction ID: " + reversal_response .reversalResponse.litleTxnId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment