PrimerQRCodeScope manages payment methods that display a QR code for the user to scan (e.g., PromptPay, Xfers). The SDK automatically polls for completion after the QR code is displayed.
Declaration
Properties
| Property | Type | Description |
|---|---|---|
state | AsyncStream<PrimerQRCodeState> | Stream of QR code state changes |
Customization
| Property | Type | Description |
|---|---|---|
screen | QRCodeScreenComponent? | Full screen replacement. Signature: (any PrimerQRCodeScope) -> any View |
This scope inherits
start(), cancel(), onBack(), presentationContext, and dismissalMechanism from PrimerPaymentMethodScope. QR code scopes do not use submit() — the payment completes when the user scans the QR code in their banking app.PrimerQRCodeState
Flow
| Property | Type | Description |
|---|---|---|
status | Status | Current payment status |
paymentMethod | CheckoutPaymentMethod? | Payment method details |
qrCodeImageData | Data? | QR code image data (PNG). Available when status is .displaying |
Payment methods
| Payment Method | Region |
|---|---|
| PromptPay | Thailand |
| Xfers | Thailand |
See also
Scopes overview
All available scopes