Migrate from Axium API 1.x to Ingenico API 2.x

Since the release of the 2.x branch, a few changes must be done in the applications using the API.

Update dependencies

Replace dependencies to axiumapi and axiumapi-interface with a dependency to ingenico-api.

implementation 'com.ingenico.tetra.api:axiumapi-interface:1.3.3' implementation 'com.ingenico.tetra.api:axiumapi:1.3.3'

becomes :

implementation 'com.ingenico.sdk:ingenico-api:2.0.0'

API level change

The required API level is now 19 (Kit Kat) instead of 24 (Nougat), and Java 8 is not mandatory anymore.

Add context to all interface initialization

A Context is now mandatory to initialize all interfaces.

ITransaction transaction = Transaction.getInstance();

becomes :

ITransaction transaction = Transaction.getInstance(getContext());

Update Image Display Interface

Replace the naming of the package and classes

com.ingenico.sdk.customerscreendisplay DisplayStatus DisplayResult

becomes :

com.ingenico.sdk.customerscreen ImageDisplayStatus ImageDisplayResult

Update Basket Interface

Replace the naming of the package

com.ingenico.sdk.basket

becomes :

com.ingenico.sdk.customerscreen.basket

Dependency to Guava has been removed

In 1.x branch, some methods used Guava's ImmutableSet as parameter or return value. To be compatible with earlier API level and Java 7, the Guava dependency has been removed, and these method signatures has been changed, now using a standard JDK List object.

Changed methods are :