Card
class Card(val type: PaymentMethodType, number: String, val expiryDate: CardExpiryDate, val cvv: String? = null, val cardholder: String? = null)
Use this class to process raw card data for payments. You should use this class if your app takes over the user interface for the card input fields.
Parameters
type
Card type, e.g. Visa or Mastercard
number
Card number
expiry Date
Expiry date
cvv
Card security code - null if the card does not have a card security code
cardholder
Cardholder's name (as written on the card)
Constructors
Link copied to clipboard
constructor(type: PaymentMethodType, number: String, expiryDate: CardExpiryDate, cvv: String? = null, cardholder: String? = null)
Use this to initialize a card object with the card data.