FILTER BY TAG

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.
Follow this step to enroll a device.
  1. Use the
    enrollDevice
    activity 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

    The
    enroll
    activity 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.
  1. Use the
    reEnrollDevice
    activity 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

    The
    enroll
    activity returns the result
    Intent
    .

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()