fun getInitialCreditCardEditorState(): CreditCardEditorState { val calendar = Calendar.getInstance() val startYear = calendar.get(Calendar.YEAR) val endYear = startYear + NUMBER_OF_YEARS_TO_SHOW return CreditCardEditorState( expiryYears = Pair(startYear, endYear), ) }
Returns the initial credit editor state if no credit card is provided.