Created
February 29, 2012 15:31
-
-
Save VantivSDK/1941662 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Partial Capture
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'LitleOnline' | |
include LitleOnline | |
#Partial Capture | |
#litleTxnId contains the Litle Transaction Id returned as part of the authorization | |
#submit the amount to capture which is less than the authorization amount | |
#to generate a partial capture | |
capture_info = {'litleTxnId' => '320000000000000001', 'amount' => '5005'} | |
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