Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class TerminalOutcomeUnknownException
- Object
- Throwable
- Exception
- IOException
- 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
messageString- what was known when contact was lost
transactionIdString- 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.