public interface TransactionStatus
TransactionStatus
interface represents the outcome of an EMV transaction,
following a call to
the method Transaction.startTransaction(com.yello.api.payment.emv.TransactionType,
java.math.BigDecimal, java.math.BigDecimal)
or
the method Transaction.startTransaction(com.yello.api.payment.emv.TransactionConfiguration,
com.yello.api.payment.emv.TransactionType, java.math.BigDecimal, java.math.BigDecimal)
of the Transaction
singleton class.
Transaction
singleton class.Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getAmount()
Gets the amount of the transaction
|
java.math.BigDecimal |
getCashBackAmount()
Gets the cash-back amount for the transaction
If transaction is a purchase transaction with cashback option (identified by TransactionType.CASHBACK ) |
java.lang.String |
getCurrencyAlphabeticCode()
Gets the Currency Alphabetic Code as defined by ISO 4217
|
java.util.Map<java.lang.String,java.lang.String> |
getGatewayData()
Get the custom data sent back by the gateway
|
TransactionReceipt[] |
getReceipt()
Returns a list of
TransactionReceipt representing the receipt in Json Format
Two receipts are available MERCHANT and CARDHOLDER receipts |
java.util.Date |
getTransactionDateTime()
Gets the date and time of the transaction
|
java.lang.String |
getTransactionID()
Gets the transaction identifier
|
TransactionResult |
getTransactionResult()
Gets the
TransactionResult of the EMV transaction. |
TransactionState |
getTransactionState()
Gets the
TransactionState of the EMV transaction. |
TransactionType |
getTransactionType()
Gets the type for the transaction characterized by
TransactionType |
boolean |
isEMVConfigAvailable()
Indicates if gateway has indicated that there are new EMV configs available
during the transaction
|
boolean |
isOnlineAuthorized()
Checks if the EMV transaction is an online authorized transaction
|
boolean |
isReceiptAvailable()
Indicates if a receipt is available following the completion of the EMV transaction.
|
java.lang.String getTransactionID()
java.util.Date getTransactionDateTime()
TransactionResult getTransactionResult()
TransactionResult
of the EMV transaction.TransactionResult
TransactionState getTransactionState()
TransactionState
of the EMV transaction.TransactionState
TransactionType getTransactionType()
TransactionType
TransactionType
java.math.BigDecimal getAmount()
BigDecimal
representing the amount for the transactionjava.math.BigDecimal getCashBackAmount()
TransactionType.CASHBACK
)BigDecimal
representing the cashback amountjava.lang.String getCurrencyAlphabeticCode()
String
representing the Currency Alphabetic Codeboolean isOnlineAuthorized()
boolean isReceiptAvailable()
TransactionReceipt[] getReceipt()
TransactionReceipt
representing the receipt in Json Format
Two receipts are available MERCHANT and CARDHOLDER receiptsTransactionReceipt
representation of the receipts if available, otherwise returns nullboolean isEMVConfigAvailable()
java.util.Map<java.lang.String,java.lang.String> getGatewayData()
Copyright © 2019 Yello. All rights reserved.