OnlineAuthorizationResponse

public class OnlineAuthorizationResponse

Response for online authorization

Methods

asCommerceResponse

public static CommerceResponse asCommerceResponse(OnlineAuthorizationResponse onlineAuthorizationResponse)

Generate CommerceResponse from the provided response

asTransactionEventResponse

public static TransactionEventResponse asTransactionEventResponse(OnlineAuthorizationResponse onlineAuthorizationResponse)

Return TransactionEventResponse from the provided response

getAuthorizationCode

public String getAuthorizationCode()

Gets the authorization code (EMV tag 89)

Return:

hex string representing the value generated by the authorization authority for an approved transaction

getAuthorizationResponseCode

public String getAuthorizationResponseCode()

Gets the authorization response code (EMV tag 8A)

Return:

hex string representing code that defines the disposition of a message

getInvoiceId

public String getInvoiceId()

Returns invoice id from event

getIssuerAuthenticationData

public String getIssuerAuthenticationData()

Gets the issuer authentication data (EMV tag 91)

Return:

hex string representing data sent to the ICC for online issuer authentication

getOnlineResult

public boolean getOnlineResult()

Gets the online result.

Return:

whether or not an online dialog was successful

getTransaction

public Transaction getTransaction()

Return Transaction from event

setAuthorizationCode

public void setAuthorizationCode(String authorizationCode)

Sets the authorization code (EMV tag 89) to the requested value

Parameters:
  • authorizationCode – hex string representing the value generated by the authorization authority for an approved transaction

setAuthorizationResponseCode

public void setAuthorizationResponseCode(String code)

Sets the authorization response code (EMV tag 8A) to the requested value

Parameters:
  • authorizationResponseCode – hex string representing code that defines the disposition of a message

setIssuerAuthenticationData

public void setIssuerAuthenticationData(String data)

Sets the issuer authentication data (EMV tag 91) to the requested value

Parameters:
  • issuerAuthenticationData – hex string representing data sent to the ICC for online issuer authentication

setOnlineResult

public void setOnlineResult(boolean result)

Sets the online result to the requested value

Parameters:
  • onlineResult – whether or not an online dialog was successful

updateTransaction

public void updateTransaction(Transaction transaction)

Update transaction from response