SavedCard class

A card previously saved via doCardOnFile: true. id is sent as savedCardId to pay with it.

Constructors

SavedCard({required int id, required String cardNumber, required String cardHolderName, required String expiryDate, required String customerToken, required String channel})
SavedCard.fromJson(Map<String, dynamic> json)
The id arrives under savedCardId, the PAN under pan (already partly masked by the server, e.g. "445653XXXX1096") - id/cardNumber are fallbacks for other response shapes.
factory

Properties

cardHolderName → String
final
cardNumber → String
Re-masked defensively via maskedForDisplay, same policy as SavedWallet.msisdn.
final
channel → String
The channel this saved card belongs to, as a string - not currently used to submit a payment.
final
customerToken → String
Not currently used to submit a payment - id is what's sent instead.
final
expiryDate → String
MM/YY (or similar).
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
maskedForDisplay → String
"<first 4 digits>***<last 4 digits>", regardless of whether already masked.
no setter
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
toString() → String
A string representation of this object.
inherited

Operators

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