The Java SDK helps you to communicate with the Online Payments Server API. Its primary features are:
Its use is demonstrated by an example for each possible call. The examples execute a call using the provided API keys.
This repository consists out of four main components:
/src/main/java/
and /src/main/generated/
/src/test/java/
/src/it/java/
Assuming you have Maven installed, simply include the SDK as a Maven dependency:
<dependency>
<groupId>com.worldline-solutions</groupId>
<artifactId>onlinepayments-sdk-java</artifactId>
<version>x.y.z</version>
</dependency>
Alternatively, download the latest version of the SDK from GitHub. Choose the onlinepayments-sdk-java-x.y.z-bin.zip
file from the releases page, where x.y.z
is the version number. Add all JAR files inside the lib
folder of this file to your project, except for onlinepayments-sdk-java-x.y.z-javadoc.jar
and onlinepayments-sdk-java-x.y.z-sources.jar
This repository uses Maven to build. To build the SDK, execute the following command from its root directory (which contains the pom.xml
file):
mvn -clean package
The build will generate the following files in the target
directory, where x.y.z
is the version number:
onlinepayments-sdk-java-x.y.z.jar
, containing the compiled class filesonlinepayments-sdk-java-x.y.z-javadoc.jar
, containing the generated Javadoconlinepayments-sdk-java-x.y.z-sources.jar
, containing the source codeonlinepayments-sdk-java-x.y.z-src.zip
, containing the contents of this folderonlinepayments-sdk-java-x.y.z-bin.zip
, containing the necessary JAR files for standalone deployments and examplesTo use it add all JAR files inside the lib
folder of the onlinepayments-sdk-java-x.y.z-bin.zip
file to your project, except for onlinepayments-sdk-java-x.y.z-javadoc.jar
and onlinepayments-sdk-java-x.y.z-sources.jar
.