tokenize

open fun tokenize(@NonNull card: Card, @NonNull callback: CardTokenizeCallback)

Create a CardNonce.

The tokenization result is returned via a CardTokenizeCallback callback.

On success, the onResult method will be invoked with a nonce.

If creation fails validation, the onResult method will be invoked with an ErrorWithResponse exception.

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

Parameters