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
constructor(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

Properties

Link copied to clipboard

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

The Date this token was created

Link copied to clipboard
open override val id: String

The Token id

Link copied to clipboard

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

Link copied to clipboard

The Type of this token.

Link copied to clipboard

true if this token has been used, false otherwise

Functions

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