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:
Create a
TerminalApplication
viaPOST /terminal-applications
Wait for the application to move to
enabled
. This can be detected via theterminalAppRegistration.updated
webhookLink the
TerminalApplication
to a merchant viaPOST /accounts/{accountID}/terminal-applications
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
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.