nationid - v2.2.1
    Preparing search index...

    Function validate

    • Validate a Panamanian (PA) identity or tax document.

      Parameters

      • code: "PA_CEDULA" | "PA_RUC" | "PA_PASAPORTE" | ShortCode

        Document type, either fully-qualified (PA_CEDULA, PA_RUC) or short (CEDULA, RUC, PASAPORTE).

      • input: string

        Raw document string (formatting tolerated).

      Returns boolean

      true if the value passes PA-specific validation rules.

      import { validate } from "nationid/pa";
      validate("PA_CEDULA", "8-123-456");
      validate("RUC", "8-123-456-12345");