Card

data class Card : StripeModel, StripePaymentSource

A representation of a Card API object.

Properties

Link copied to clipboard

City/District/Suburb/Town/Village.

Link copied to clipboard

Billing address country, if provided when creating card.

Link copied to clipboard

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

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

Link copied to clipboard

State/County/Province/Region.

Link copied to clipboard

ZIP or postal code.

Link copied to clipboard

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

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

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

The ID of the customer that this card belongs to.

Link copied to clipboard

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

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

Card funding type. See CardFunding.

Link copied to clipboard
open override val id: String?

Unique identifier for the object.

Link copied to clipboard

The last four digits of the card.

Link copied to clipboard
val name: String?

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)