PaymentCard class
A payment request (VietQR).
- Inheritance
-
- Object
- MessageCard
- PaymentCard
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
paymentobject.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
kinddiscriminator.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 (seePaymentQr).final - qrPayload → String?
-
The raw VietQR (EMVCo) string, when the card carries it (
qr_payloadorqr.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 (
paidorsucceeded).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