Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class TerminalOutcomeUnknownException

  1. Object
  2. Throwable
  3. Exception
  4. IOException
  5. TerminalOutcomeUnknownException

The terminal may or may not have charged the card, and could not say which.

This is the one failure a point-of-sale app must never treat as a decline: charging again can take the money twice. Look the payment up – with PaymentTerminal.lookup(String) where the terminal supports it, or on the provider’s dashboard by getTransactionId() or the request’s reference – before asking the customer for another card.

Constructors

public TerminalOutcomeUnknownException(String message, String transactionId)

Methods

public String getTransactionId()The provider’s ID for the payment in doubt, or null.

Inherited methods

Constructor details

TerminalOutcomeUnknownException

public TerminalOutcomeUnknownException(String message, String transactionId)

Parameters

message String
what was known when contact was lost
transactionId String
the provider’s ID for the payment, or null when it never assigned one

Method details

getTransactionId

public String getTransactionId()
The provider’s ID for the payment in doubt, or null.