Card

data class Card @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val brand: CardBrand = CardBrand.Unknown, val checks: PaymentMethod.Card.Checks? = null, val country: String? = null, val expiryMonth: Int? = null, val expiryYear: Int? = null, val fingerprint: String? = null, val funding: String? = null, val last4: String? = null, val threeDSecureUsage: PaymentMethod.Card.ThreeDSecureUsage? = null, val wallet: Wallet? = null, val networks: PaymentMethod.Card.Networks? = null) : PaymentMethod.TypeData

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

card

Constructors

Link copied to clipboard
fun Card(brand: CardBrand = CardBrand.Unknown, checks: PaymentMethod.Card.Checks? = null, country: String? = null, expiryMonth: Int? = null, expiryYear: Int? = null, fingerprint: String? = null, funding: String? = null, last4: String? = null, threeDSecureUsage: PaymentMethod.Card.ThreeDSecureUsage? = null, wallet: Wallet? = null, networks: PaymentMethod.Card.Networks? = null)

Types

Link copied to clipboard
data class Checks @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val addressLine1Check: String?, val addressPostalCodeCheck: String?, val cvcCheck: String?) : 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 @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(val isSupported: Boolean) : StripeModel

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

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

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.