setExpirationDate

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

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


Important:

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 or four-digit form