tokenize

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

Returns a card token that can be used to create a charge

Deprecated

This method doesn't support metadatas

Parameters

card

Card to be tokenized

callback

Tokenization callback


open fun tokenize(@NonNull card: Card, metadata: JSONObject, @NonNull callback: TokenCallback)

Returns a card token that can be used to create a charge

Parameters

card

Card to be tokenized

metadata

JSONObject containing metadatas to be stored during tokenization

callback

Tokenization callback