PaymentQR
object PaymentQR
Finds the VietQR code of a payment card.
qr_image_url points at the gateway's /pay/{id}/qr.svg, which Android image loaders cannot decode. The code itself is just the EMVCo payload, so the SDK draws it natively: from the card's payload when it carries one, else from the public checkout JSON next to the SVG (GET /pay/{id} → qr.payload). Any other URL is fetched and used only when it is a raster image.
Functions
Link copied to clipboard
The checkout JSON for an image URL of the form …/pay/{id}/qr.svg (or qr.png), else null.
Link copied to clipboard
suspend fun resolve(card: PaymentCard, client: OkHttpClient = defaultClient, timeoutMs: Long = DEFAULT_TIMEOUT_MS): PaymentQRSource
Where to draw card's QR from: its payload, the checkout's payload, or a raster image.