com.mypos.myposcheckout.ipc.request

 

Class TransactionStatus

java.lang.Object com.mypos.myposcheckout.ipc.request.Request com.mypos.myposcheckout.ipc.request.TransactionStatus

public class TransactionStatus
extends Request

Process IPC method: IPCGetTxnStatus. This method is used by Merchant to get the current status of a previously executed payment.

 

Field Summary

Fields inherited from class com.mypos.myposcheckout.ipc.request.Request

configoutputFormat

 

Constructor Summary

Constructors
Constructor and Description
TransactionStatus(Config config) 

 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.lang.String getOrderId() 
ComplexResponse process()
Gather all request parameters needed to make an API call, and make one.
void setOrderId(java.lang.String orderId) 
boolean validate()
Checks if the class members are valid API request parameter values.

 

Methods inherited from class com.mypos.myposcheckout.ipc.request.Request

addRequestParamaddRequestParamaddRequestParamaddRequestParamaddRequestParam
processApiCallremoveRequestParamsetConfigsetOutputFormat

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

TransactionStatus

public TransactionStatus(Config config)

 

Method Detail

getOrderId

public java.lang.String getOrderId()

setOrderId

public void setOrderId(java.lang.String orderId)

validate

public boolean validate()
                 throws IPCException
Checks if the class members are valid API request parameter values.
Returns:
true if all members can be used as valid API request parameters
Throws:
IPCException - If there are values which are missing, or invalid API request parameters.

process

public ComplexResponse process()
                        throws IPCException
Gather all request parameters needed to make an API call, and make one.
Returns:
the decoded API response
Throws:
IPCException - If there are invalid or missing parameters, or configuration values. If there were errors while making the call to the API, or decoding it's response.