EmvPaymentContent class final
An EMVCo merchant-presented QR code (EMV QRCPS): the format of PIX,
PayNow, PromptPay, QRIS, VietQR, DuitNow and many other national
schemes. 000201…6304XXXX.
fields holds the data objects by their two-digit id, in order;
templates (merchant accounts 26–51, additional data 62) keep their
nested data objects as written. The checksum (63) is checked when
parsing and written by toPayload. Build a PIX code with
EmvPaymentContent.pix.
- Inheritance
-
- Object
- BarcodeContent
- PaymentContent
- EmvPaymentContent
Constructors
-
EmvPaymentContent(Map<
String, String> fields) -
Creates an EMVCo payment from its data objects, without
63.const - EmvPaymentContent.pix({required String key, required String name, required String city, String? amount, String txid = '***', String? description})
-
A PIX payment (Banco Central do Brasil):
keyis the PIX key (an e-mail address, a phone number such as+5511912345678, a CPF/CNPJ or a random key);nameup to 25 andcityup to 15 characters;txidup to 25 letters and digits,***for none.factory
Properties
- account → String?
-
The account paid into: an IBAN, an account number, a UPI address or a
PIX key.
no setteroverride
- amount → String?
-
The amount with a decimal point, or
nullwhen the payer enters it.no setteroverride - countryCode → String?
-
The two-letter country code (
58).no setter - currency → String?
-
The alphabetic code of currencyCode for common currencies, else the
numeric code.
no setteroverride
- currencyCode → String?
-
The ISO 4217 numeric currency code (
53), such as986.no setter -
fields
→ Map<
String, String> -
The data objects by id, without the checksum (
63).final - hashCode → int
-
The hash code for this object.
no setteroverride
- isDynamic → bool
-
Whether the code is for one payment (
01=12) rather than reusable.no setter - merchantCategoryCode → String?
-
The merchant category code (
52).no setter - merchantCity → String?
-
The merchant's city (
60).no setter - merchantName → String?
-
The merchant's name (
59).no setter - payee → String?
-
Who is paid.
no setteroverride
- pixKey → String?
-
The PIX key, for EmvScheme.pix.
no setter
- reference → String?
-
The reference label of the additional data (
62,05), such as a PIX txid;nullfor***.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → EmvScheme
-
The scheme of the first merchant account that names one.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
template(
String id) → Map< String, String> -
The nested data objects of template
id(26–51,62,64), or an empty map. -
toPayload(
) → String -
The data objects in order, then the checksum.
override
-
toString(
) → String -
A string representation of this object.
override
-
validate(
) → List< ContentIssue> -
The problems that keep toPayload from building this value, such as
an empty network name or a latitude out of range. Empty when the value
can be built. For forms: show each ContentIssue.message next to its
ContentIssue.field.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override