tokenize

fun tokenize(card: Card, callback: CardTokenizeCallback)

Create a CardNonce.

The tokenization result is returned via a CardTokenizeCallback callback.

On success, the CardTokenizeCallback.onCardResult method will be invoked with a CardResult.Success including a nonce.

If creation fails validation, the CardTokenizeCallback.onCardResult method will be invoked with a CardResult.Failure including an ErrorWithResponse exception.

If an error not due to validation (server error, network issue, etc.) occurs, the CardTokenizeCallback.onCardResult method will be invoked with a CardResult.Failure with an Exception describing the error.

Parameters