Card
class Card(type: PaymentMethodType, number: String, expiryDate: CardExpiryDate, cvv: String?, cardholder: String?)
Content copied to clipboard
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
expiryDate
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
Card
Link copied to clipboard
fun Card(type: PaymentMethodType, number: String, expiryDate: CardExpiryDate, cvv: String? = null, cardholder: String? = null)
Content copied to clipboard
Use this to initialize a card object with the card data.
Properties
cardholder
Link copied to clipboard
expiryDate
Link copied to clipboard
type
Link copied to clipboard