CardData constructor
const
CardData({})
Implementation
const CardData({
this.cardNumber,
required this.cardholderName,
required this.expiryMonth,
required this.expiryYear,
required this.cvv,
this.email,
this.countryCode,
this.mobile,
this.cardNetwork,
/// When editing a saved card, the card id so the host can update the right card.
/// When [cardId] is set, [cardNumber] may be null (card number is not changed).
this.cardId,
/// Token returned from payment/auth APIs (e.g. m_payment_token).
this.paymentToken,
/// Display/network brand (e.g. Visa). Used for saved cards when [cardNumber] is null.
this.brand,
/// When [cardNumber] is null, last four digits for display (saved/tokenized cards).
this.displayLastFour,
});