Interface ValidationRuleExpirationDate

A validation rule that can validate a single value.

Hierarchy

Properties

id: "expirationDate"

The validation rule ID. This can be used for the ruleId field of ValidationErrors, or the result of validatePaymentRequest.

Methods

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

    Parameters

    • request: PaymentRequest

      The request to validate a single field of.

    • fieldId: string

      The ID of the field to validate.

    Returns boolean

    True if the field's value in the payment request is valid, or false otherwise.

  • Validates a single value.

    Parameters

    • value: string

      The value to validate.

    Returns boolean

    True if the value is valid, or false otherwise.