moov-android

The Moov SDK provides tap-to-pay functionality via an Android app

Application registration

Applications utilizing this SDK must be registered via the Moov API. This process enables device integrity checks as well as authorizing specific merchants to utilize the Tap to Pay SDK. The process for application registration is as follows:

  1. Create a TerminalApplication via POST /terminal-applications

  2. Wait for the application to move to enabled. This can be detected via the terminalAppRegistration.updated webhook

  3. Link the TerminalApplication to a merchant via POST /accounts/{accountID}/terminal-applications

  4. When a new version of the application is published to Google Play, register this version via POST /terminal-applications/{terminalApplicationID}/versions

The terminalConfig value referenced in the examples below is the output of the terminalConfigurations API. This is an opaque string which contains information necessary for the Terminal to operate properly.

Packages

Link copied to clipboard

The main entry point is a factory method: MoovSDK.createTerminal. This initializes a terminal instance which ensures a secure environment. This method should be called as early in the application's lifecycle as is practical, as it may take a significant amount of time to complete the device attestation.

Link copied to clipboard

Models for use in the Moov SDK