Package-level declarations

Types

Link copied to clipboard
data class Address(var addressLine1: String, var addressLine2: String, var city: String, var state: String, var zip: String, var country: Country? = null)

A representation of a Address

Link copied to clipboard
data class Card @JvmOverloads constructor(val expiryDate: ExpiryDate, val name: String? = null, val number: String, val cvv: String? = null, val billingAddress: Address? = null, val phone: Phone? = null)

A representation of a Card API object

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

Used for Creating a card token request

Link copied to clipboard
data class CVVTokenDetails(val type: String, val token: String, val expiresOn: String)

A representation of a CVVTokenDetails contains tokenization response

Link copied to clipboard
data class CVVTokenizationRequest(val cvv: String, val cardScheme: CardScheme = CardScheme.UNKNOWN, val resultHandler: (CVVTokenizationResultHandler) -> Unit)

Represents a request to tokenize a CVV.

Link copied to clipboard

Sealed class representing the result of a CVV tokenization operation. It can either be a success containing Success or a failure containing Failure.

Link copied to clipboard
data class ExpiryDate(val expiryMonth: Int, val expiryYear: Int)

Object representing an expiry date containing expiryMonth and expiryYear.

Link copied to clipboard
data class GooglePayTokenRequest(val tokenJsonPayload: String, val onSuccess: (tokenDetails: TokenDetails) -> Unit, val onFailure: (errorMessage: String) -> Unit)

Used for Creating a Google Pay token request

Link copied to clipboard
data class Phone(val number: String, val country: Country?)

A representation of a Phone

Link copied to clipboard
data class TokenDetails(val type: String, val token: String, val expiresOn: String, val expiryMonth: Int, val expiryYear: Int, val scheme: String?, val schemeLocal: String?, val last4: String, val bin: String, val cardType: String?, val cardCategory: String?, val issuer: String?, val issuerCountry: String?, val productId: String? = null, val productType: String? = null, val billingAddress: Address? = null, val phone: Phone? = null, val name: String?)
Link copied to clipboard
sealed class TokenResult<out S : Any>