Transaction result validation
Interpretation of API responses to validate the result of a transaction should ideally be done on (but not limited to) a combination of the following fields:
- resultCode
- successful
- transactionState
- transactionType
With this in mind, it is important to note that
<TransactionType>PAYMENT</TransactionType>
<TransactionState>NEW</TransactionState>
confirms which state the payment is in, whereas
<ResultCode>00</ResultCode>
<ResultMessage>Successful</ResultMessage>
confirms that the transaction status lookup request to retrieve this data was successful.