Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created March 28, 2012 20:56
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/2230439 to your computer and use it in GitHub Desktop.
Save VantivSDK/2230439 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Capture Given Auth transaction
require 'LitleOnline'
include LitleOnline
#Capture Given Auth
capture_given_auth_info = {
'merchantId' => '101',
'version'=>'8.8',
'reportGroup'=>'Planets',
'orderId'=>'12344',
'amount'=>'106',
'authInformation' => {
'authDate'=>'2002-10-09',
'authCode'=>'543216',
'authAmount'=>'12345'
},
'orderSource'=>'ecommerce',
'card'=>{
'type'=>'VI',
'number' =>'4100000000000001',
'expDate' =>'1210'
}
}
response = LitleOnlineRequest.new.capture_given_auth(capture_given_auth_info)
#display results
puts "Response: " + response.captureGivenAuthResponse.response
puts "Message: " + response.captureGivenAuthResponse.message
puts "Litle Transaction ID: " + response.captureGivenAuthResponse.litleTxnId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment