Card

Information about the card used in a purchase.

Parameters

brand

The brand (for example, VISA or Mastercard) of a Card.

cardCoBrand

The co-brand (for example, an Afterpay virtual card would have a co-brand of AFTERPAY.) of a Card.

lastFourDigits

The last 4 digits of this card's number.

expirationMonth

The month of the expiration date of the card. This must be in range of 1-12

expirationYear

The year of the expiration date of the card, 4 digits.

cardholderName

The cardholder's full name, if available.

id

The card identifier, if this card instance came from storing a card on file.

bin

The first six digits of the card number.

Types

Link copied to clipboard

Card brand (e.g. Mastercard, VISA, etc).

Link copied to clipboard
class Builder(brand: Card.Brand, lastFourDigits: String)

Lets developers create and configure card data for automated testing. There is no need to reference this builder class outside of tests.

Link copied to clipboard

The card's co-brand if available. For example, an Afterpay virtual card would have a co-brand of AFTERPAY.

Properties

Link copied to clipboard
val bin: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
open override fun toString(): String

Simply print "Card" because we don't want to accidentally log or otherwise leak card data.

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