setHintText

fun setHintText(field: CardField, hint: String)

Sets the hint text for the specified field

Parameters

field

The field to set hint text for

hint

The hint text to be set

Important:

This can also be set in xml with the following attributes

  • app:cardNumberHint

  • app:expirationHint

  • app:cvvHint

  • app:postalCodeHint