Created
February 29, 2012 14:47
-
-
Save VantivSDK/1941298 to your computer and use it in GitHub Desktop.
Ruby SDK - Litle Authorization transaction
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 | |
#Authorization | |
auth_info = { | |
'orderId' => '1', | |
'amount' => '10010', | |
'orderSource'=>'ecommerce', | |
'billToAddress'=>{ | |
'name' => 'John Smith', | |
'addressLine1' => '1 Main St.', | |
'city' => 'Burlington', | |
'state' => 'MA', | |
'zip' => '01803-3747', | |
'country' => 'US'}, | |
'card'=>{ | |
'number' =>'4**************9', | |
'expDate' => '0112', | |
'cardValidationNum' => '349', | |
'type' => 'VI'} | |
} | |
auth_response = LitleOnlineRequest.new.authorization(auth_info) | |
#display results | |
puts "Response: " + auth_response.authorizationResponse.response | |
puts "Message: " + auth_response.authorizationResponse.message | |
puts "Litle Transaction ID: " + auth_response.authorizationResponse.litleTxnId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment