I'm using the rxp-remote-java passing the reference of credit card and try to deal without doubts with the response.
I received the following 501 response when I try to process the same order again:

And I received this response when try to process a order with a wrong credit card reference:

I'm not try to argue about the message field but the result code because I don't want to believe that I need to check a string like getMessage().contains("has already been processed") to check if the error ocurred because the order was already been processed or another error.
There is another way to achieve this validation or I really need to check message field?
Thanks in advance.
Marco
I'm using the rxp-remote-java passing the reference of credit card and try to deal without doubts with the response.
I received the following 501 response when I try to process the same order again:
And I received this response when try to process a order with a wrong credit card reference:
I'm not try to argue about the message field but the result code because I don't want to believe that I need to check a string like
getMessage().contains("has already been processed")to check if the error ocurred because the order was already been processed or another error.There is another way to achieve this validation or I really need to check message field?
Thanks in advance.
Marco