CardTokenRequest

data class CardTokenRequest(val card: Card, val onSuccess: (tokenDetails: TokenDetails) -> Unit, val onFailure: (errorMessage: String) -> Unit)

Used for Creating a card token request

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

Constructors

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

Properties

Link copied to clipboard
val card: Card
Link copied to clipboard
val onFailure: (errorMessage: String) -> Unit
Link copied to clipboard
val onSuccess: (tokenDetails: TokenDetails) -> Unit