Card

class Card(type: PaymentMethodType, number: String, expiryDate: CardExpiryDate, cvv: String?, cardholder: String?)

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)
Use this to initialize a card object with the card data.

Properties

cardholder
Link copied to clipboard
val cardholder: String? = null
Cardholder's name (as written on the card)
cvv
Link copied to clipboard
val cvv: String? = null
Card security code - null if the card does not have a card security code
expiryDate
Link copied to clipboard
val expiryDate: CardExpiryDate
Expiry date
number
Link copied to clipboard
val number: String
Card number
type
Link copied to clipboard
val type: PaymentMethodType
Card type, e.g.