tokenize
Create a CardNonce. Note that if the card is a UnionPay card, setEnrollmentId and setSmsCode need to be set for tokenization to succeed.
On completion, returns the CardNonce to onResult
If creation fails validation, onResult will be called with the resulting ErrorWithResponse.
If an error not due to validation (server error, network issue, etc.) occurs, onResult will be called with the that occurred.
Parameters
unionPayCard
callback