CardExpiryDate
public class CardExpiryDate: NSObject, Codable, NSCopying
Class to be used to represent the card expiry date (month and year).
-
Formats the month to a two digit string.
Declaration
Swift
public var formattedMonth: String -
Formats the year to a two digit string.
Declaration
Swift
public var formattedYear: String -
Card expiry month, [1, 12], e.g. 1 for January or 12 for December
Declaration
Swift
public var month: Int -
Card expiry year, 2 or 4 digits, e.g. 30 or 2030
Declaration
Swift
public var year: Int -
Initializes the card expiry date with the given month and year.
Declaration
Swift
public init(month: Int, year: Int)Parameters
monthCard expiry month, [1, 12], e.g. 1 for January or 12 for December
yearCard expiry year, 2 or 4 digits, e.g. 30 or 2030
View on GitHub