CardTokenRequest

constructor(card: Card, onSuccess: (tokenDetails: TokenDetails) -> Unit, onFailure: (errorMessage: String) -> Unit)

Parameters

card

the representation of Card

onSuccess

invokes when token api returns success response holding the TokenDetails

onFailure

invokes when token api returns failure response holding the errorMessage