-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Worldpay: extract issuer response code #4412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsmcclain Approved. I looked a little more into required_status_message
and wondering if it's necessary to display "A transaction status of 'AUTHORISED' or 'CAPTURED' is required."
as a message in a purchase response. The initial work around that method indicates to me that the status
message is really only relevant on failed void
or refund
transactions.
What if your change was an option for the message field instead of exposing it as a GSRF?
@drkjc Nice work looking deeply at the issue. You are right - in this particular case we have a failed purchase transaction and the message returned is I agree with you that it appears I think you are suggesting two separate but related things:
I don't really feel confident in either of these changes. I think change 1 is a great idea, I just don't know the gateway enough. What is I'm not sure I agree with change 2. Isn't it possible that there is valuable information in Thoughts? |
Moving ahead with merging in the interests of expedience. Still open to hearing your thoughts about additional changes, @drkjc . |
762988f
to
2d62ad6
Compare
The data is embedded in XML attributes and was therefore not included in the parsed response. CE-2546 Rubocop: 739 files inspected, no offenses detected Unit: 5175 tests, 75682 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote: Loaded suite test/remote/gateways/remote_worldpay_test 94 tests, 392 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
2d62ad6
to
e50f4cd
Compare
@dsmcclain Apologies, I missed your reply. I agree with your assessment of both options. In regards to 1 I created a Jira ticket in our backlog, CE-2620. My research was cursory and I agree a thorough vetting of the current behavior is needed. Your example code is what I was imagining. For 2 I think you are also correct, the issuer response while sometimes helpful, should not be the official message we display in the response. What would be great is if we could expose the |
The data is embedded in XML attributes and was therefore not included in the parsed response.
There is no remote test to describe this behavior because Worldpay's Sandbox does not return
IssuerResponseCode
. An example of the XML response we should expect has been included in the unit tests.CE-2546
Rubocop:
739 files inspected, no offenses detected
Unit:
5175 tests, 75682 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
Remote:
Loaded suite test/remote/gateways/remote_worldpay_test
94 tests, 392 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed