The Java SDK helps you to communicate with the Ingenico Connect Server API. It's primary features are:
- convenient Java wrapper around the API calls and responses
- marshalls Java request objects to HTTP requests
- unmarshalls HTTP responses to Java response objects or Java exceptions
- handling of all the details concerning authentication
- handling of required meta data
Its use is demonstrated by an example for each possible call. The examples execute a call using the provided API keys.
See the Ingenico Connect Developer Hub for more information on how to use the SDK.
This repository consists out of four main components:
- The source code of the SDK itself:
/src/main/java/
and/src/main/generated/
- The source code of the SDK unit tests:
/src/test/java/
- The source code of the example integration tests:
/src/it/java/
- The source code of the example calls:
/src/examples/java/
This repository uses Maven to build. Assuming you have Maven installed, building is straightforward:
- Run
mvn -clean package
from the root directory (which contains the pom.xml file)
The build will generate the following files in the target directory, where x.y.z
is the version number:
connect-sdk-java-x.y.z.jar
, containing the compiled class filesconnect-sdk-java-x.y.z-javadoc.jar
, containing the generated Javadocconnect-sdk-java-x.y.z-sources.jar
, containing the source codeconnect-sdk-java-x.y.z-src.zip
, containing the contents of this folderconnect-sdk-java-x.y.z-bin.zip
, containing the necessary JAR files for standalone deployments and examples
To use it add all JAR files inside the lib folder of the connect-sdk-java-x.y.z-bin.zip
file to your project, except for connect-sdk-java-x.y.z-javadoc.jar
and connect-sdk-java-x.y.z-sources.jar
.
Alternatively, if the Java SDK is installed in an available Maven repository, it can be included as a Maven dependency:
<dependency>
<groupId>com.ingenico.connect.gateway</groupId>
<artifactId>connect-sdk-java</artifactId>
<version>x.y.z</version>
</dependency>