GatewayTransactionResponse class
Response from the gateway (via em-api) for a single transaction attempt.
The SDK does not invent any of these fields. Every value here originates from em-api, which in turn got them from the authoritative gateway. If em-api did not return a value, the field is null.
Security: emvResponseData and raw may carry response data the gateway considers sensitive (issuer scripts, cryptograms). They are intentionally not included in toString().
Constructors
-
GatewayTransactionResponse({required TransactionResultStatus status, String? authCode, String? gatewayTransactionId, String? responseCode, String? responseMessage, int? approvedAmountMinorUnits, String? networkTransactionId, String? emvResponseData, Map<
String, dynamic> ? raw}) -
const
-
GatewayTransactionResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- approvedAmountMinorUnits → int?
-
Amount the gateway actually approved, in minor units. May differ
from the requested amount on partial approvals.
final
- authCode → String?
-
Gateway-issued authorization code. Only present when the gateway
actually issued one; the SDK never synthesizes this value.
final
- emvResponseData → String?
-
Sensitive. EMV issuer response data (scripts, cryptogram
authentication) returned by the gateway, for the reader.
final
- gatewayTransactionId → String?
-
Gateway-assigned transaction id.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- networkTransactionId → String?
-
Network (scheme) transaction identifier, when returned.
final
-
raw
→ Map<
String, dynamic> ? -
Sensitive. Raw gateway response payload, for diagnostics. Not
emitted to logs.
final
- responseCode → String?
-
Gateway response code (e.g. ISO 8583 response code).
final
- responseMessage → String?
-
Human-readable message from the gateway. Suitable for receipts
only when the gateway is the one phrasing it; do not rewrite.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → TransactionResultStatus
-
Canonical status of the gateway's decision.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited