Card
data class Card(val brand: Card.Brand, val lastFourDigits: String, val expirationMonth: Int, val expirationYear: Int, val postalCode: String?, val type: Card.Type = Type.UNKNOWN, val prepaidType: Card.PrepaidType = PrepaidType.UNKNOWN)
Represents a payment card.
Constructors
Link copied to clipboard
constructor(brand: Card.Brand, lastFourDigits: String, expirationMonth: Int, expirationYear: Int, postalCode: String?, type: Card.Type = Type.UNKNOWN, prepaidType: Card.PrepaidType = PrepaidType.UNKNOWN)
Properties
Link copied to clipboard
The card brand (for example, Visa).
Link copied to clipboard
The expiration month of the card. Ranges between 1 and 12.
Link copied to clipboard
The 4-digit expiration year of the card.
Link copied to clipboard
The last 4 digits of the card number.
Link copied to clipboard
The billing postal code associated with the card, if available.
Link copied to clipboard
Indicates whether or not this is a prepaid card. Note: This property is experimental and will always return PrepaidType.UNKNOWN.
Link copied to clipboard
The card’s type. Note: This property is experimental and will always return Type.UNKNOWN.