setExpiryDate

open override fun setExpiryDate(@IntRange(from = 1, to = 12) month: Int, @IntRange(from = 0, to = 9999) year: Int)

Set the expiration date. Method invokes completion listener and changes focus to the CVC field if a valid date is entered.

Note that while a four-digit and two-digit year will both work, information beyond the tens digit of a year will be truncated. Logic elsewhere in the SDK makes assumptions about what century is implied by various two-digit years, and will override any information provided here.

Parameters

month

a month of the year, represented as a number between 1 and 12

year

a year number, either in two-digit form or four-digit form