Function validateCreditCardExpiration

  • Validates the expiration date of a credit card.

    Parameters

    • month: number

      The month of the expiration date.

    • year: number

      The year of the expiration date. (Cannot be more than 10 years in the future)

    Returns Promise<boolean>

    Returns true if the expiration date is valid, otherwise returns false.

Generated using TypeDoc