Hierarchy

  • PaymentProductField

Properties

id: string
inputType: string

The type of field, usable in an HTML input element.

type: string
usedForLookup?: boolean

Methods

  • If available, applies this field's mask to a value.

    Parameters

    • newValue: string

      The value to apply this field's mask to.

    • Optional oldValue: string

      An optional existing value for this field; used to determine the cursor index.

    Returns MaskedString

    The result of applying the mask.

  • If available, applies this field's wildcard mask to a value.

    Parameters

    • newValue: string

      The value to apply this field's wildcard mask to.

    • Optional oldValue: string

      An optional existing value for this field; used to determine the cursor index.

    Returns MaskedString

    The result of applying the mask.

  • If available, removes this field's mask from a value.

    Parameters

    • value: string

      The value to remove this field's mask from.

    Returns string

    The result of removing the mask.

  • Validates this field for a payment request. It can retrieve the field's value, but also if necessary other values, from the payment request.

    Parameters

    Returns string[]

    A list of validation rule IDs that failed validation.