On This Page
Enroll a New Device
Use the
enroll
function to enroll a new device. This function shows
options in a merchant-facing UI for enrolling a new device.switch await mposUi.enroll() { case .success(let deviceId): print("Enrollment successful with device id: %@", deviceId) case .cancelledByUser: print("Enrollment cancelled.") case .error(let developerInfo): print("Enrollment failed. Info: %@", developerInfo) }