public class TransactionGatewayStatus
extends java.lang.Object
TransactionGatewayStatus
class represents the result returned by a transaction
gateway class (implementing the TransactionGateway
interface), following a call by the Yello transaction library to the method
TransactionGateway.sendOnlineRequest(com.yello.api.payment.emv.TransactionRecord)
.Constructor and Description |
---|
TransactionGatewayStatus(EMVTagReader tagReader)
Constructor used by the transaction gateway class when sending custom EMV tags
(like issuer script) back to the Yello transaction library.
|
TransactionGatewayStatus(TransactionGatewayResult result)
Constructor used by the transaction gateway class when sending back either
TransactionGatewayResult.APPROVED or
TransactionGatewayResult.DECLINED or
to the Yello transaction library. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorDeclinedReason()
Get the reason for a processing or transaction declined
Will normally be used by the Yello transaction library |
java.util.Map<java.lang.String,java.lang.String> |
getGatewayData()
Get gateway custom data which will be sent back to the application
|
TransactionGatewayResult |
getResult()
Gets the result set by the transaction gateway
Will normally be used by the Yello transaction library |
EMVTagReader |
getTagReader()
Gets the custom EMV tags set by the transaction gateway, characterized by the
EMVTagReader interface. |
void |
setErrorDeclinedReason(java.lang.String str)
Indicates error or declined reason.
|
void |
setGatewayData(java.util.Map<java.lang.String,java.lang.String> gatewayData)
Set gateway custom data which will be sent back to the application
|
void |
setResult(TransactionGatewayResult result)
Sets the
TransactionGatewayResult
Used normally by the transcation gateway class if it needs to update the result after creating the TransactionGatewayStatus class. |
void |
setTagReader(EMVTagReader tagReader)
Set the EMV tags to be sent as part of the result.
|
public TransactionGatewayStatus(EMVTagReader tagReader) throws java.lang.IllegalArgumentException
TransactionGatewayResult.CUSTOM
tagReader
- EMVTagReader
interface
implemented by the EMVTagStore
containing
the custom EMV tags.java.lang.IllegalArgumentException
- if tagReader is null or has no tags.public TransactionGatewayStatus(TransactionGatewayResult result) throws java.lang.IllegalArgumentException
TransactionGatewayResult.APPROVED
or
TransactionGatewayResult.DECLINED
or
to the Yello transaction library.result
- TransactionGatewayResult
to return
to the Yello transaction library.java.lang.IllegalArgumentException
- if result is
TransactionGatewayResult.CUSTOM
public TransactionGatewayResult getResult()
TransactionGatewayResult
public EMVTagReader getTagReader()
EMVTagReader
interface.
EMVTagReader
holding the EMV tagspublic void setResult(TransactionGatewayResult result)
TransactionGatewayResult
TransactionGatewayStatus
class.result
- TransactionGatewayResult
to be set.public void setTagReader(EMVTagReader tagReader)
TransactionGatewayStatus
class.
TransactionGatewayResult.CUSTOM
tagReader
- EMVTagReader
holding the EMV tags
to send to the Yello transaction library.public void setErrorDeclinedReason(java.lang.String str)
str
- String indicating the reason for a processing error or transaction declinedpublic java.lang.String getErrorDeclinedReason()
public void setGatewayData(java.util.Map<java.lang.String,java.lang.String> gatewayData)
gatewayData
- gateway custom datapublic java.util.Map<java.lang.String,java.lang.String> getGatewayData()
Copyright © 2019 Yello. All rights reserved.