PaymentCard class

A payment request (VietQR).

Inheritance

Constructors

PaymentCard({required String id, required num amount, required String currency, required String checkoutUrl, required String qrImageUrl, required String code, required String status, String? orderId, String? orderCode, DateTime? expiresAt, String? qrPayload})
Creates a payment card.
const
PaymentCard.fromJson(Json p)
Parses the payment object.
factory

Properties

amount → num
Amount.
final
checkoutUrl → String
Checkout URL.
final
code → String
Transfer note.
final
currency → String
Currency code.
final
expiresAt → DateTime?
Expiry.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Payment id.
final
kind → String
The kind discriminator.
no setteroverride
orderCode → String?
Order code.
final
orderId → String?
Order id.
final
qrImageUrl → String
QR image URL. The gateway serves an SVG at /pay/{id}/qr.svg, which Flutter cannot decode; the SDK draws the code from qrPayload instead (see PaymentQr).
final
qrPayload → String?
The raw VietQR (EMVCo) string, when the card carries it (qr_payload or qr.payload). Older cards lack it; the SDK then looks it up from the public checkout.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → String
Payment status.
final
statusPaid → bool
The status says paid (paid or succeeded).
no setter

Methods

isPaid([PaidMarks? marks]) → bool
Paid by its status, or because marks (from the timeline) mark its order or the payment itself as paid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited