Token

data class Token @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(    val id: String,     val type: Token.Type,     val created: Date,     val livemode: Boolean,     val used: Boolean,     val bankAccount: BankAccount? = null,     val card: Card? = null) : StripeModel, StripePaymentSource

Tokenization is the process Stripe uses to collect sensitive card, bank account details, Stripe account details or personally identifiable information (PII), directly from your customers in a secure manner. A Token representing this information is returned to you to use.

Constructors

Link copied to clipboard
fun Token(    id: String,     type: Token.Type,     created: Date,     livemode: Boolean,     used: Boolean,     bankAccount: BankAccount? = null,     card: Card? = null)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
enum Type : Enum<Token.Type>

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)

Properties

Link copied to clipboard
val bankAccount: BankAccount? = null

If applicable, the BankAccount for this token

Link copied to clipboard
val card: Card? = null

If applicable, the Card for this token

Link copied to clipboard
val created: Date

The Date this token was created

Link copied to clipboard
open override val id: String

The Token id

Link copied to clipboard
val livemode: Boolean

true if this token is valid for a real payment, false if it is only usable for testing

Link copied to clipboard
val type: Token.Type

The Type of this token.

Link copied to clipboard
val used: Boolean

true if this token has been used, false otherwise