emvco-qr-sdk
Version:
A robust TypeScript SDK for decoding, validating, and processing EMVCo-compliant QR codes used in digital payment systems.
35 lines (34 loc) • 1.1 kB
TypeScript
import { QRParseMode } from '../../domain/enums/qr-parse-mode.enum';
/**
* Default behavior for TLV QR parsing.
*/
export declare const DEFAULT_RECURSIVE = true;
/**
* Default QR parse mode (EMVCo TLV format).
*/
export declare const DEFAULT_PARSE_MODE = QRParseMode.TLV;
/**
* TLV tag reserved for CRC checksum validation.
*/
export declare const TAG_CRC = "63";
/**
* Common subtag representing a GUI (Globally Unique Identifier).
*/
export declare const TAG_GUI = "00";
/**
* Fallback value used when no payload version is explicitly defined.
*/
export declare const FALLBACK_TLV_VERSION = "01";
/**
* Constant string representing the EMVCo QR format.
*/
export declare const EMV_QR_FORMAT = "EMVCO";
/**
* Default field name used to extract the payload version from the TLV.
*/
export declare const DEFAULT_PAYLOAD_VERSION_FIELD = "payloadFormatIndicator";
/**
* List of tags that follow a common pattern: they include a GUI (subtag 00)
* and additional subfields following a generic interpretation strategy.
*/
export declare const TAGS_WITH_GENERIC_GUI_STRATEGY: string[];