CardData constructor

const CardData({
  1. String? cardNumber,
  2. required String cardholderName,
  3. required String expiryMonth,
  4. required String expiryYear,
  5. required String cvv,
  6. String? email,
  7. String? countryCode,
  8. String? mobile,
  9. String? cardNetwork,
  10. String? cardId,
  11. String? paymentToken,
  12. String? brand,
  13. String? displayLastFour,
})

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,
});