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 | |
#litleTxnId contains the Litle Transaction Id returned on the authorization | |
$capture_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'; | |
#Authorization | |
$auth_info = array( | |
'orderId' => '1', | |
'amount' => '10010', | |
'id'=> '456', | |
'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'; | |
#Authorization | |
#Puts a hold on the fund | |
$auth_info = array( | |
'id'=> '456', | |
'orderId' => '1', | |
'amount' => '10010', | |
'orderSource'=>'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'; | |
#Sale | |
$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
<cnpOnlineRequest version="12.1" xmlns="http://www.vantivcnp.com/schema" merchantId="default"> | |
<authentication> | |
<user>JoesStore</user> | |
<password>JoeyIsTheBe$t</password> | |
</authentication> | |
<authorization id="ididid" reportGroup="rtpGrp" customerId="12345"> | |
<orderId>1</orderId> | |
<amount>1000</amount> | |
<orderSource>ecommerce</orderSource> | |
<billToAddress> |
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
$curl --header "Content-Type: text/xml" -d@<File with XML content> https://www.testvantivcnp.com/sandbox/communicator/online |
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.*; | |
//Authorization | |
public class AuthExample { | |
public static void main(String[] args) { | |
Authorization auth = new Authorization(); | |
auth.setOrderId("1"); | |
auth.setAmount(10010L); | |
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
import com.litle.sdk.*; | |
import com.litle.sdk.generate.*; | |
public class SaleExample { | |
public static void main(String[] args) { | |
Sale sale = new Sale(); | |
sale.setOrderId("1"); | |
sale.setAmount(10010L); | |
sale.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.*; | |
//Full Lifecycle | |
public class FullLifecycleExample { | |
public static void main(String[] args) { | |
LitleOnline litle = new LitleOnline(); | |
Authorization auth = new Authorization(); | |
auth.setOrderId("1"); |
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 CaptureExample { | |
public static void main(String[] args) { | |
Capture capture = new Capture(); | |
//litleTxnId contains the Litle Transaction Id returned on the authorization | |
capture.setLitleTxnId(100000000000000001L); | |
CaptureResponse response = new LitleOnline().capture(capture); | |
//Display Results |