Closed meglio closed 8 years ago
Thanks for the report - it looks like the 'Unknown' TransactionType is causing a problem loading the response. We need to handle building the response objects with unexpected values better to avoid this situation,
I'll see if I can get a release out this week to improve this, it is also causing a problem when trying to get the latest version of Rapid working with the SDK.
How to reproduce this bug:
TransactionType
parameter, so that there are 2 errors in the request:TransactionType
parameterIt can be seen in the original JSON response returned from the server that 2 error codes are returned and they explain the issues very well:
The codes returned are:
However, this JSON is processed further - it is converted into an instance of
CreateTransactionResponse
. The instance'sgetErrors()
method returns a single error with code S9995, which "hides" the original useful codes V6111 and V6010.So, at the end, when calling
getErrors()
, you only get S9995, which does not help you to understand the issues with the request.Looks like a bug unless I'm doing it in a wrong way.