Worldpay provides SDK updates for releases in the latest major version stream. We do not provide SDK updates to older releases, unless mandated by the card brands. All SDKs are open source, allowing you to update older versions as needed.
Vantiv eCommerce powers the payment processing engines for leading companies that sell directly to consumers through internet retail, direct response marketing (TV, radio and telephone), and online services. Vantiv eCommerce is the leading authority in card-not-present (CNP) commerce, transaction processing and merchant services.
The Vantiv eCommerce Java SDK is a Java implementation of the Vantiv eCommerce XML API. This SDK was created to make it as easy as possible to process your payments with Vantiv eCommerce. This SDK utilizes the HTTPS protocol to securely connect to Vantiv eCommerce. Using the SDK requires coordination with the Vantiv eCommerce team in order to be provided with credentials for accessing our systems.
Each Java SDK release supports all the functionality present in the associated Vantiv eCommerce XML version (e.g., SDK v9.3.2 supports Vantiv eCommerce XML v9.3). Please see the online copy of our XSD for Vantiv eCommerce XML to get more details on what the Vantiv eCommerce payments engine supports.
This SDK was implemented to support the Java programming language and was created by Vantiv eCommerce. Its intended use is for online and batch transaction processing utilizing your account on the Vantiv eCommerce payments engine.
See LICENSE file for details on using this software.
Please contact Vantiv eCommerce to receive valid merchant credentials in order to run tests successfully or if you require assistance in any way. We are reachable at sdksupport@fisglobal.com
-
Add JCenter repository to your Maven or Gradle build:
- For Maven, please read instructions at: https://bintray.com/bintray/jcenter
- For Gradle, add
jcenter()
to yourrepositories { ... }
-
Add the dependency
-
For Maven:
<dependency> <groupId>com.litle</groupId> <artifactId>litle-sdk-for-java</artifactId> <version>8.25.4</version> </dependency>
-
For Gradle:
compile(group: 'com.litle', name: 'litle-sdk-for-java', version: '8.25.4')
-
-
Create your configuration file with one of the following
- Run
java -jar /path/to/litle-sdk-for-java.jar
and answer the questions, or - Add a file
.litle_SDK_config.properties
to your home directory with the correct properties in it
- Run
-
Use it:
import com.litle.sdk.*;
import com.litle.sdk.generated.*;
public class SampleLitleTxn {
public static void main(String[] args) {
// Visa $10 Sale
Sale sale = new Sale();
sale.setReportGroup("Planets");
sale.setOrderId("12344");
sale.setAmount(1000L);
sale.setOrderSource(OrderSourceType.ECOMMERCE);
CardType card = new CardType();
card.setType(MethodOfPaymentTypeEnum.VI);
card.setNumber("4100000000000002");
card.setExpDate("1210");
sale.setCard(card);
// Peform the transaction on the Vantiv eCommerce Platform
SaleResponse response = new LitleOnline().sale(sale);
// display result
System.out.println("Message: " + response.getMessage());
System.out.println("Vantiv eCommerce Transaction ID: " + response.getLitleTxnId());
}
}
More examples can be found here Java Gists