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

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

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.

Properties

Link copied to clipboard
val cardholder: String? = null

Cardholder's name (as written on the card)

Link copied to clipboard
val cvv: String? = null

Card security code - null if the card does not have a card security code

Link copied to clipboard

Expiry date

Link copied to clipboard

Card number

Link copied to clipboard

Card type, e.g. Visa or Mastercard