ข้ามไปยังเนื้อหา

ThaiQRPaymentProps

Defined in: react/src/index.tsx:25

  • CardOptions

optional accent?: string

Defined in: render/dist/card.d.ts:48

Foreground / accent colour for text + silhouette artwork.

CardOptions.accent


optional amount?: number

Defined in: react/src/index.tsx:27


optional amountLabel?: string

Defined in: render/dist/card.d.ts:42

Optional amount label rendered below the QR.

CardOptions.amountLabel


optional ariaLabel?: string

Defined in: react/src/index.tsx:34

Optional aria-label override; defaults to “Thai QR Payment for “.


optional background?: string

Defined in: render/dist/card.d.ts:46

Background colour of the entire card.

CardOptions.background


optional centerOverlay?: boolean

Defined in: render/dist/card.d.ts:61

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.

CardOptions.centerOverlay


optional className?: string

Defined in: react/src/index.tsx:31


optional errorCorrectionLevel?: ErrorCorrectionLevel

Defined in: react/src/index.tsx:30


optional fromSatang?: boolean

Defined in: react/src/index.tsx:29


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

Defined in: render/dist/card.d.ts:52

Override the Thai QR Payment header logo by registry name.

CardOptions.headerLogo


optional merchantName?: string

Defined in: render/dist/card.d.ts:44

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

CardOptions.merchantName


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

Defined in: render/dist/card.d.ts:54

Override the PromptPay sub-mark by registry name.

CardOptions.promptpayLogo


optional qrColor?: string

Defined in: render/dist/card.d.ts:50

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

CardOptions.qrColor


recipient: string

Defined in: react/src/index.tsx:26


optional recipientType?: PromptPayRecipientType

Defined in: react/src/index.tsx:28


optional style?: CSSProperties

Defined in: react/src/index.tsx:32


optional theme?: CardTheme

Defined in: render/dist/card.d.ts:40

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

CardOptions.theme