Logo
Flutter

Model

Transactionsuccess

A lightweight wrapper returned by SDK callbacks. It contains a human-readable message, a numeric/text code for programmatic handling, and an optional transactionResponse with full transaction details when present.

Key usage:

  • Check code for numeric error/result handling.
  • Inspect message for display or logs.
  • Parse transactionResponse when available to persist or reconcile the transaction.
class Transactionsuccess {
  String? message;              // Success or error message
  String? code;                 // Response/result code (use numeric string or code mapping)
  TransactionResponse? transactionResponse;  // Detailed transaction data
}

TransactionResponse

Represents a completed transaction

class TransactionResponse {
  final String tranId;          // Transaction ID
  final String trace;           // Trace number
  final String rrn;             // RRN 
  final String tranType;        // Transaction type (SALE/VOID/REFUND/AUTH)
  final String tranStatus;      // Transaction status (Approved/Declined/Processing/Voided/Reversed)
  final String approvalCode;    // Card present approval auth code.
  final String paymentMethod;   // Payment method used (Visa/Mastercard/...)
  final CardData? cardData;     // Card data returned
  final String? entryMode;      // Entry mode 
  final String? maskedAccount;  // Masked PAN (e.g., **** **** **** 1234)
  final String? cvmPerformed;   // CVM method used
  final String acqMid;          // Acquirer merchant ID
  final String acqTid;          // Acquirer terminal ID
  final String posMessageId;    // POS message ID (client-generated)
  final String mchAddress;      // Merchant address
  final String mchName;         // Merchant name
  final double totalAmount;     // Total transaction amount
  final String createByName;
  final String createdAt;
  final String updatedAt;
}

CardData

Contains EMV-level fields returned by the terminal when a card is present.

class CardData {
  final String aid;       // Application Identifier (AID)
  final String appName;   // Application label/name
  final String tc;        // Transaction Certificate (EMV)
  final String tsi;       // Transaction Status Information
  final String tvr;       // Terminal Verification Results
}

On this page