On This Page
Enabling Device Enrollment
Use the information in this section to enable device enrollment and view the device
enrollment result in the Tap to Pay on Android SDK. The enrollment workflow guides you
through the device enrollment activity.
Enroll a Device
Before starting the device enrollment process, make sure the Tap to Pay Ready
app is installed on the Android device. Download the app using this Google Play Store link. If the app is not
installed before device enrollment, you will be prompted to install it during the
enrollment process. To learn more about the Tap to Pay Ready app, see PCI MPoC Standard Compliance.
Use the information in this
section to enroll a device using the
enrollDevice
activity. This
activity presents a merchant-facing UI that enables users to enroll a new device or
a previously enrolled device by selecting or entering the device’s serial
number.- Use theenrollDeviceactivity to enroll the device.val mposUi: MposUi = ... mposUi.tapToPhone.enrollDevice(activity, requestCode) ... override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { if (EnrollResultIntent.isEnrollmentSuccessful(resultCode, data)) { onDeviceEnrolled() } super.onActivityResult(requestCode, resultCode, data) }
Step Result
Theenrollactivity returns the result Intent.
Enroll a Previously Enrolled Device
Use the information in this section to enroll a previously enrolled device by using
the
reEnrollDevice
activity. This activity enables you to perform
device re-enrollment through the SDK by supplying a stored serial number. This
streamlined workflow eliminates the need for the merchant to manually select or enter
the serial number during re-enrollment.- Use thereEnrollDeviceactivity to enroll the previously enrolled device.val mposUi: MposUi = ... mposUi.tapToPhone.reEnrollDevice(activity, serialNumber, requestCode) ... override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { if (EnrollResultIntent.isEnrollmentSuccessful(resultCode, data)) { onDeviceEnrolled() } super.onActivityResult(requestCode, resultCode, data) }
Step Result
Theenrollactivity returns the resultIntent.
View the Device Enrollment Result
After completing device enrollment, use the
enroll
activity or
isDeviceEnrolled
function to view the device enrollment result. The
enroll
activity returns the result Intent
when
the device enrollment process is successful. This example shows the information that
is returned in the result
Intent
:RESULT_CODE: EnrollResultIntent.ENROLMENT_RESULT_CODE (3489523) EXTRA: EnrollResultIntent.ENROLMENT_RESULT_EXTRA (enrolmentResult = deviceEnrolled) EXTRA: EnrollResultIntent.ENROLLMENT_RESULT_EXTRA_SERIAL_NUMBER (serialNumber)
The
isDeviceEnrolled
function returns a true
value
when the device is enrolled or a false
value when not. This example
shows how to use the function:enrollmentstatus = isDeviceEnrolled()