Skip to content

RaastP2PQrOptions

Defined in: raast.ts:63

Options for createRaastP2PQr.

Property Type Description
iban string Payee’s Pakistani IBAN.
scheme? "00" | "30" Scheme identifier (tag 02). Defaults to '00', as used by banking apps. '30' is the value listed for Raast in SBP’s QR standard.
amount? number Amount in PKR. When set, the QR is dynamic (point of initiation 12) and expiresAt is required: banking apps reject dynamic QR codes without an expiry, and ignore the amount in static ones.
expiresAt? Date When a QR with an amount stops working (tag 07). With amount, give this or expiresIn.
expiresIn? number | `${number}d` | `${number}m` | `${number}h` How long from now a QR with an amount works, instead of expiresAt: milliseconds, or a string such as '30m', '12h' or '7d'.
bankName? string Payee’s bank name (up to 25 characters).
particulars? string Payment description (up to 30 characters).