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
import com.litle.sdk.*; | |
import com.litle.sdk.generate.*; | |
public class ForceCaptureExample { | |
public static void main(String[] args) { | |
ForceCapture forceCapture = new ForceCapture(); | |
forceCapture.setAmount(106L); | |
forceCapture.setOrderId("12344"); | |
forceCapture.setOrderSource(OrderSourceType.ECOMMERCE); | |
CardType card = new CardType(); |
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 | |
#AVS Only | |
auth_info = { | |
'orderId' => '1', | |
'amount' => '0', | |
'orderSource'=>'ecommerce', | |
'billToAddress'=>{ | |
'name' => 'John Smith', |
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 | |
#Auth Reversal | |
#litleTxnId contains the Litle Transaction Id returned on the authorization | |
reversal_info = {'litleTxnId' => '100000000000000001'} | |
reversal_response = LitleOnlineRequest.new.auth_reversal(reversal_info) | |
#display results | |
puts "Response: " + reversal_response.reversalResponse.response |
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 | |
#Capture Given Auth | |
capture_given_auth_info = { | |
'merchantId' => '101', | |
'version'=>'8.8', | |
'reportGroup'=>'Planets', | |
'orderId'=>'12344', | |
'amount'=>'106', |
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 | |
#Force Capture | |
force_capture_info = { | |
'merchantId' => '101', | |
'version'=>'8.8', | |
'reportGroup'=>'Planets', | |
'litleTxnId'=>'123456', | |
'orderId'=>'12344', |
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 | |
#Void | |
void_info = { | |
#litleTxnId contains the Litle Transaction Id returned on the deposit/refund | |
'litleTxnId' => '100000000000000001', | |
} | |
response = LitleOnlineRequest.new.void(void_info) |
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 | |
#Void | |
void_info = { | |
#litleTxnId contains the Litle Transaction Id returned on the deposit/refund | |
'litleTxnId' => '100000000000000001', | |
} | |
response = LitleOnlineRequest.new.void(void_info) |
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
<?php | |
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php'; | |
#AVS Only | |
$auth_info = array( | |
'orderId' => '1', | |
'id'=> '456', | |
'amount' => '10010', | |
'orderSource'=>'ecommerce', | |
'billToAddress'=>array( |
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
<?php | |
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php'; | |
#Auth Reversal | |
#litleTxnId contains the Litle Transaction Id returned on the authorization | |
$authRev_info = array( | |
'litleTxnId'=>'350000000000000001', | |
'id'=> '456' | |
); |
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
<?php | |
require_once realpath(dirname(__FILE__)) . '/../lib/LitleOnline.php'; | |
#Capture Given Auth | |
$capture_info = array( | |
'id'=> '456', | |
'orderId'=>'12344', | |
'amount'=>'106', | |
'authInformation' => array( |