Skip to content

CardOptions

Defined in: card.ts:42

optional accent?: string

Defined in: card.ts:52

Foreground / accent colour for text + silhouette artwork.


optional amountLabel?: string

Defined in: card.ts:46

Optional amount label rendered below the QR.


optional background?: string

Defined in: card.ts:50

Background colour of the entire card.


optional centerOverlay?: boolean

Defined in: card.ts:65

Overlay the Thai QR Payment icon at the centre of the QR matrix. Defaults to true for theme: 'color', false for 'silhouette'. Always pair with encodeQR({ errorCorrectionLevel: 'Q' | 'H' }) so the obscured modules are recoverable.


optional headerLogo?: "PromptPay1" | "PromptPay2" | "Thai_QR_Payment_Logo-01"

Defined in: card.ts:56

Override the Thai QR Payment header logo by registry name.


optional merchantName?: string

Defined in: card.ts:48

Optional merchant name rendered below the QR (above the amount).


optional promptpayLogo?: "PromptPay1" | "PromptPay2" | "Thai_QR_Payment_Logo-01"

Defined in: card.ts:58

Override the PromptPay sub-mark by registry name.


optional qrColor?: string

Defined in: card.ts:54

QR module fill colour. Defaults to #000000 for max scanner contrast.


optional theme?: CardTheme

Defined in: card.ts:44

Brand artwork flavor. color keeps full fidelity, silhouette is monochrome.