Configuring an Android Framework for your App

Follow these instructions to configure an Android Framework for your app:

1

Contact Clearent for a card reader and a public key.

2

Locate the required .jar files in the lib folder.

3

Use the PublicOnReceiverListener interface object to communicate back with your Android app.

4

Use the ApplicationContext interface object in your project for 2 in 1 mode (DIP/SWIPE).

5

Use the ApplicationContext3In1 interface object in your project for 3 in 1 mode (CONTACTLESS/DIP/SWIPE).

6

Use the DeviceFactory interface to get an object of the device in which your app is installed.

7

Call the device_configurePeripheralAndConnect() method to use an audio jack reader for processing the payment through your Android app.

8

Call the registerListen method to register the card reader connected using the Bluetooth settings.

9

Call the isReady method to get notifications after connecting the card reader successfully.

10

Call the device_startTransaction method to start the card data process for the payment transaction.

Last updated

Was this helpful?