paynow-decoder
Version:
A decoder for PayNow QR codes and payment information
28 lines (27 loc) • 659 B
TypeScript
export interface PayNowData {
payloadFormat?: string;
pointOfInitiation?: string;
merchantAccountInfo?: {
identifier?: string;
proxyType?: string;
proxyValue?: string;
amountEditable?: boolean;
expiryDate?: string;
};
merchantCategoryCode?: string;
currencyCode?: string;
transactionAmount?: number;
countryCode?: string;
merchantName?: string;
merchantCity?: string;
additionalData?: {
referenceNumber?: string;
};
crc?: string;
}
export interface DecodedField {
id?: string;
length?: number;
value?: string;
nestedFields?: DecodedField[];
}