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'; | |
#Force Capture | |
$capture_info = array( | |
'id'=> '456', | |
'merchantId' => '101', | |
'version'=>'8.8', | |
'reportGroup'=>'Planets', | |
'litleTxnId'=>'123456', |
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.*; | |
//AVS Only | |
public class AvsOnlyExample { | |
public static void main(String[] args) { | |
Authorization auth = new Authorization(); | |
auth.setOrderId("1"); | |
auth.amount(0L); | |
auth.setOrderSource(OrderSourceType.ECOMMERCE); |
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'; | |
#Void | |
$void_info = array( | |
'litleTxnId'=>'100000000000000001', | |
'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'; | |
#Re authorization using the litleTxnId of a previous auth | |
$auth_info = array( | |
'litleTxnId'=>'1234567891234567891', | |
'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'; | |
#Register an account number to receive a Litle Token | |
$token_info = array( | |
'orderId'=>'12344', | |
'id'=> '456', | |
'accountNumber'=>'1233456789103801'); |
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'; | |
#Sale using a previously registered token | |
$sale_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'; | |
#Partial Auth Reversal | |
#litleTxnId contains the Litle Transaction Id returned on the authorization | |
$authRev_info = array( | |
'litleTxnId'=>'350000000000000001', | |
'amount'=>'20020' | |
); |
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 OrphanedRefundExample { | |
public static void main(String[] args) { | |
Credit credit = new Credit(); | |
credit.setOrderId("1"); | |
credit.amount(10010L); | |
credit.setOrderSource(OrderSourceType.ECOMMERCE); | |
Contact billToAddress = new Contact(); |
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.*; | |
import java.util.Properties; | |
public class MultiCurrencyExample { | |
public static void main(String[] args) { | |
LitleOnline usdCurrency = new LitleOnline(); //This will use the default merchant setup in .litle_SDK_config.properties supporting purchases in USD | |
Authorization authorization = new Authorization(); |
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.*; | |
import java.util.Properties; | |
public class MultiCurrencyExample { | |
public static void main(String[] args) { | |
LitleOnline litle = new LitleOnline(); | |
Authorization authorization = new Authorization(); |