enroll

open fun enroll(@NonNull unionPayCard: UnionPayCard, @NonNull callback: UnionPayEnrollCallback)

Enrolls a Union Pay card. Only call this method if the card needs to be enrolled. Check fetchCapabilities if your card needs to be enrolled.

On completion, returns an enrollmentId to onResult This enrollmentId needs to be applied to UnionPayCard along with the SMS code collected from the merchant before invoking tokenize

On error, an exception will be passed back to onResult

Parameters