Class TerminalReconciliation

java.lang.Object
com.codename1.payment.terminal.TerminalReconciliation

public final class TerminalReconciliation extends Object

The outcome of PaymentTerminal.reconcile(): the terminal closed its batch and sent it to the acquirer for settlement.

The figures are the terminal's own. A provider that settles on its servers reports what it knows; compare them with the app's records and treat the acquirer's settlement report as authoritative.

  • Constructor Details

    • TerminalReconciliation

      public TerminalReconciliation(boolean success, int transactionCount, long totalAmount, String currency, String message, String[] receipt)
      Parameters
      • success: whether the terminal closed the batch

      • transactionCount: the number of payments in it, or -1 when the terminal did not report it

      • totalAmount: their sum in the currency's minor unit, or -1 when not reported

      • currency: the ISO 4217 code of the total, or null

      • message: the terminal's explanation, or null

      • receipt: the report as the terminal printed it, or null

  • Method Details

    • isSuccess

      public boolean isSuccess()
      Whether the terminal closed the batch.
    • getTransactionCount

      public int getTransactionCount()
      The number of payments in the batch, or -1 when not reported.
    • getTotalAmount

      public long getTotalAmount()
      Their sum in the currency's minor unit, or -1 when not reported.
    • getCurrency

      public String getCurrency()
      The ISO 4217 code of the total, or null.
    • getMessage

      public String getMessage()
      The terminal's explanation, or null.
    • getReceipt

      public String[] getReceipt()
      The report as the terminal printed it, line by line, or null.