Card

data class Card : StripeModel, StripePaymentSource

A representation of a Card API object.

Properties

Link copied to clipboard
val addressCity: String? = null

City/District/Suburb/Town/Village.

Link copied to clipboard
val addressCountry: String? = null

Billing address country, if provided when creating card.

Link copied to clipboard
val addressLine1: String? = null

Address line 1 (Street address/PO Box/Company name).

Link copied to clipboard

If address_line1 was provided, results of the check: pass, fail, unavailable, or unchecked.

Link copied to clipboard
val addressLine2: String? = null

Address line 2 (Apartment/Suite/Unit/Building).

Link copied to clipboard
val addressState: String? = null

State/County/Province/Region.

Link copied to clipboard
val addressZip: String? = null

ZIP or postal code.

Link copied to clipboard
val addressZipCheck: String? = null

If address_zip was provided, results of the check: pass, fail, unavailable, or unchecked.

Link copied to clipboard

Card brand. See CardBrand.

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 currency: String? = null

Three-letter ISO code for currency. Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency.

Link copied to clipboard
val customerId: String? = null

The ID of the customer that this card belongs to.

Link copied to clipboard
val cvcCheck: String? = null

If a CVC was provided, results of the check: pass, fail, unavailable, or unchecked.

Link copied to clipboard
@get:IntRange(from = 1, to = 12)
val expMonth: Int?

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

Link copied to clipboard
val expYear: Int?

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

Link copied to clipboard
val fingerprint: String? = null

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: CardFunding? = null

Card funding type. See CardFunding.

Link copied to clipboard
open override val id: String?

Unique identifier for the object.

Link copied to clipboard
val last4: String? = null

The last four digits of the card.

Link copied to clipboard
val name: String? = null

Cardholder name.

Link copied to clipboard

If the card number is tokenized, this is the method that was used. See TokenizationMethod.

Functions

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