Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created February 29, 2012 15:25
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/1941575 to your computer and use it in GitHub Desktop.
Save VantivSDK/1941575 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Capture Transaction
require 'LitleOnline'
include LitleOnline
#Capture
#litleTxnId contains the Litle Transaction Id returned on the authorization
capture_info = {'litleTxnId' => '100000000000000001'}
capture_response = LitleOnlineRequest.new.capture(capture_info)
#display results
puts "Response: " + capture_response.captureResponse.response
puts "Message: " + capture_response.captureResponse.message
puts "Litle Transaction ID: " + capture_response .captureResponse.litleTxnId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment