Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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