CardSummary class

Safe-to-display summary of a card.

PCI rule: this object must never contain the full PAN, the CVV, the PIN, the track data, or the EMV cryptogram. Only maskedPan, last4, brand, and entryMode are allowed here.

Constructors

CardSummary({String? last4, String? maskedPan, CardBrand brand = CardBrand.unknown, EntryMode entryMode = EntryMode.unknown, String? cardholderName})
const
CardSummary.fromJson(Map<String, dynamic> json)
factory

Properties

brand → CardBrand
Card brand, when known.
final
cardholderName → String?
Cardholder name as printed on the card, when reported. Not required and not used for authorization.
final
entryMode → EntryMode
How this card was presented.
final
hashCode → int
The hash code for this object.
no setteroverride
last4 → String?
Last four digits of the PAN (e.g. 4242).
final
maskedPan → String?
Masked PAN suitable for receipts (e.g. ************4242). Must not be the unmasked PAN.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override