-
-
Save VantivSDK/2781912 to your computer and use it in GitHub Desktop.
Quickstart sample sale transaction using the Litle SDK for Ruby
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 | |
# Visa $10 Sale | |
litleSaleTxn = { | |
'merchantId' => '087900', | |
'reportGroup'=>'rpt_grp', | |
'orderId'=>'1234567', | |
'card'=>{ | |
'type'=>'VI', | |
'number' =>'4100000000000001', | |
'expDate' =>'1212'}, | |
'orderSource'=>'ecommerce', | |
'amount'=>'1000' | |
} | |
# Peform the transaction on the Litle Platform | |
response = LitleOnlineRequest.sale(litleSaleTxn) | |
# display results | |
puts "Message: "+ response.message | |
puts "Litle Transaction ID: "+ response.creditResponse.litleTxnId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment