CardData constructor
const
CardData({
- String? cardNumber,
- required String cardholderName,
- required String expiryMonth,
- required String expiryYear,
- required String cvv,
- String? email,
- String? countryCode,
- String? mobile,
- String? cardNetwork,
- String? cardId,
- String? paymentToken,
- String? brand,
- String? displayLastFour,
- Map<
String, dynamic> ? rawResponse,
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,
/// Raw API response payload from add-card or other operations.
this.rawResponse,
});