-
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
TransFirst Express: Fix blank address2 values #3231
TransFirst Express: Fix blank address2 values #3231
Conversation
response = @gateway.verify(credit_card, @options) | ||
assert_success response | ||
assert_match 'Succeeded', response.message | ||
end |
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.
Why did we remove the tests for Amercian Express, Mastercard and Discover?
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 seems like something has changed since these were initially added such that only the visa card actually succeeds for the verify test. Looks like they've been broken since at least earlier this year (#3133). I haven't had luck yet, but I can try to dig into the docs some more to figure out why that's the case - would that be better left to a separate PR (and change this back) or a fix here?
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.
I'd do a cursory look to see if TransFirst provides updated test cards, I wouldn't spend more than ~30 mins on that. If you can't find them, revert the change and notate the PR with the test(s) that fail and that they are unrelated to your change. This is an instance where it's ok to ignore the test and move on.
1f6f66e
to
9c32309
Compare
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.
👍 LGTM
9c32309
to
fa02b2b
Compare
If a user passes in an empty string for the address2 field, their transaction will fail on this gateway. This PR ensures that address2 only gets passed through if it is present and not blank. Additionally it cleans up some remote test failures. test_successful_verify still fails in the remote tests, but failure is unrelated to change. Unit: 21 tests, 103 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote: 33 tests, 107 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 96.9697% passed Closes activemerchant#3231
83e1c51
to
b69fcad
Compare
If a user passes in an empty string for the address2 field, their transaction will fail on this gateway. This PR ensures that address2 only gets passed through if it is present and not blank. Additionally it cleans up some remote test failures. test_successful_verify still fails in the remote tests, but failure is unrelated to change. Unit: 21 tests, 103 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Remote: 33 tests, 107 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 96.9697% passed Closes activemerchant#3231
If a user passes in an empty string for the address2 field, their
transaction will fail on this gateway. This PR ensures that address2
only gets passed through if it is present and not blank. Additionally
it cleans up some remote test failures. test_successful_verify still
fails in the remote tests, but failure is unrelated to change.
Unit:
21 tests, 103 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
Remote:
33 tests, 107 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
96.9697% passed