Skip to content

parseRaastQr

function parseRaastQr(payload):
| ParsedRaastQr
| null;

Defined in: raast.ts:421

Parses a Raast QR payload: either a person-to-person QR (payload format 02) or an EMVCo merchant QR (payload format 01), and verifies its CRC.

Parameter Type Description
payload string Text decoded from the QR code

| ParsedRaastQr | null

Parsed details, or null if the payload is not a well-formed Pakistani QR code