PaymentCard

data class PaymentCard(val id: String, val amount: Double, val currency: String, val checkoutUrl: String, val qrImageUrl: String, val code: String, val status: String, val orderId: String? = null, val orderCode: String? = null, val expiresAt: Instant? = null, val qrPayload: String? = null) : MessageCard

A payment request (VietQR).

Constructors

Link copied to clipboard
constructor(id: String, amount: Double, currency: String, checkoutUrl: String, qrImageUrl: String, code: String, status: String, orderId: String? = null, orderCode: String? = null, expiresAt: Instant? = null, qrPayload: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Amount.

Link copied to clipboard

Checkout URL.

Link copied to clipboard

Transfer note.

Link copied to clipboard

Currency code.

Link copied to clipboard
val expiresAt: Instant? = null

Expiry.

Link copied to clipboard
val id: String

Payment id.

Link copied to clipboard
open override val kind: String

The kind discriminator.

Link copied to clipboard
val orderCode: String? = null

Order code.

Link copied to clipboard
val orderId: String? = null

Order id.

Link copied to clipboard

QR image URL (the gateway serves /pay/{id}/qr.svg, which Android cannot decode; see PaymentQR).

Link copied to clipboard
val qrPayload: String? = null

The raw VietQR (EMVCo) string, when the card carries it (qr_payload or qr.payload). The SDK draws the code from it natively; otherwise it looks the payload up from the checkout (see PaymentQR).

Link copied to clipboard

Payment status.

Link copied to clipboard

The status says paid (paid or succeeded).

Functions

Link copied to clipboard
fun isPaid(marks: PaidMarks? = null): Boolean

Paid by its status, or because marks (from the timeline) mark its order or the payment itself as paid.