-
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
Credorax: Enable selecting a processor #3302
Conversation
One general comment about the test coverage. The implementation covers |
Similar to my comment above, I was trying to follow the convention in this test file, which only tests I have the same questions about this recommendation as I wrote above. Perhaps this is a higher level discussion that would be beneficial to have outside of GitHub. |
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.
Looks good. 👍 for filling in the test coverage gaps. It sounds like Credorax has fixed some issues on their end that should allow the tests to pass. pending a test run and updating the commit message to indicate the final state of test results.
@jasonxp Despite the email from Credorax saying that the issues were fixed, I'm still getting the same remote test output that I did originally (19% of tests passing and many "Internal server error. Please contact Credorax support." error messages). Is it okay to ship these changes with so many test failures or should I wait to get the remote tests to pass? |
@leila-alderman I think we can go ahead and ship the change since it should be very low risk. There shouldn't be any impact unless the |
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.
🎉 :partyparrot:
ef0ac7e
to
fdb52be
Compare
I'm re-requesting review for this one now that the tests are working. (!!!!!!) With the 3DS2 updates for Credorax, the implementation is slightly different. The fixture for |
@@ -334,6 +338,11 @@ def add_transaction_type(post, options) | |||
post[:a9] = options[:transaction_type] if options[:transaction_type] | |||
end | |||
|
|||
def add_processor(post, options) | |||
post[:r1] = options[:processor] || 'CREDORAX' |
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.
It looks like with the previous implementation, no r1
parameter would have been set for a non-3DS transaction, whereas now r1
will be set to CREDORAX
for a non-3DS transaction that does not have the new processor
option. This seems like it would be okay, but I'm not specifically familiar with the option. Is that difference fine?
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.
My understanding is that r1
needs to be sent through for all transactions, not just 3DS transactions, whenever selecting a processor is enabled in the gateway settings.
What I don't know (and sort of assume is okay) is the effect of sending r1
when selecting a processor is not enabled in the gateway settings.
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.
👍
Adds gateway specific fields to the Credorax gateway to enable the user to select a different processor, including adding a unit test and a remote test. Gateway specific fields added: - R1: processor name - R2: processor merchant ID CE-35 Unit: 23 tests, 106 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote: 27 tests, 78 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
54b6b1a
to
c16d154
Compare
Adds gateway specific fields to the Credorax gateway to enable the user
to select a different processor, including adding a unit test and a
(failing) remote test.
Gateway specific fields added:
CE-35
Unit:
23 tests, 106 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
100% passed
Remote:
26 tests, 37 assertions, 21 failures, 0 errors, 0 pendings, 0 omissions,
0 notifications
19.2308% passed
The Credorax gateway integration was recently updated, and now many of
the remote tests that were previously passing are failing. It is
currently unknown why these tests are all failing. We have reached
out to Credorax to inquire about this new behavior.