Card

If this is a card PaymentMethod, this hash contains details about the card.

card

Types

Link copied to clipboard
data class Checks : StripeModel

Checks on Card address and CVC if provided

Link copied to clipboard
data class Networks(val available: Set<String> = emptySet(), val selectionMandatory: Boolean = false, val preferred: String? = null) : StripeModel
Link copied to clipboard
data class ThreeDSecureUsage : StripeModel

Contains details on how this Card maybe be used for 3D Secure authentication.

Properties

Link copied to clipboard

Card brand. Can be amex, diners, discover, jcb, mastercard, unionpay, visa, or unknown.

Link copied to clipboard

Checks on Card address and CVC if provided

Link copied to clipboard
val country: String? = null

Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you’ve collected.

Link copied to clipboard
val expiryMonth: Int? = null

Two-digit number representing the card’s expiration month.

Link copied to clipboard
val expiryYear: Int? = null

Four-digit number representing the card’s expiration year.

Link copied to clipboard

Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.

Link copied to clipboard
val funding: String? = null

Card funding type. Can be credit, debit, prepaid, or unknown`.

Link copied to clipboard
val last4: String? = null

The last four digits of the card.

Link copied to clipboard
Link copied to clipboard

Contains details on how this Card maybe be used for 3D Secure authentication.

Link copied to clipboard
open override val type: PaymentMethod.Type
Link copied to clipboard
val wallet: Wallet? = null

If this Card is part of a card wallet, this contains the details of the card wallet.

Functions

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