UNPKG

emvco-qr-sdk

Version:

A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.

13 lines (12 loc) 492 B
import { TlvEntity } from '../../../domain/entities/tlv.entity'; /** * Extracts and validates the CRC (Cyclic Redundancy Check) from a list of TLV entities. * * @param rawString - The original QR string, required for computing expected CRC. * @param tlvs - The parsed list of TLV entities. * @returns An object containing the CRC value and its validation result. */ export declare function getCrcInfo(rawString: string, tlvs: TlvEntity[]): { value: string; isValid: boolean; };