Class TerminalOutcomeUnknownException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.codename1.payment.terminal.TerminalOutcomeUnknownException

public class TerminalOutcomeUnknownException extends IOException

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.

  • Constructor Details

    • TerminalOutcomeUnknownException

      public TerminalOutcomeUnknownException(String message, String transactionId)
      Parameters
      • message: what was known when contact was lost

      • transactionId: 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.