Skip to content
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

Priority: fix for bin lookup #5366

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Buitragox
Copy link
Collaborator

Description

Send 8 digits for bin lookups instead of 7.

Unit tests

6157 tests, 80984 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

Remote tests

31 tests, 84 assertions, 5 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 83.871% passed

Failures not related to changes

Rubocop

808 files inspected, no offenses detected

Copy link
Collaborator

@jherreraa jherreraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@sinourain sinourain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add some tests to cover this new case e.g.

test/remote/gateways/remote_priority_test.rb:327

def test_failed_verify
    response = @gateway.verify(@invalid_credit_card)
    assert_failure response
    assert_match 'No bank information found for bin number', response.message
end

Maybe an adaptation to the previous example for unit tests

Description
-------------------------
Send 8 digits for bin lookups instead of 7.

Unit tests
-------------------------
6159 tests, 80990 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote tests
-------------------------
31 tests, 84 assertions, 5 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
83.871% passed

Failures not related to changes

Rubocop
-------------------------
808 files inspected, no offenses detected
@Buitragox Buitragox force-pushed the OPPS-238_priority_verify_quick_fix branch from 08d91dd to 4b0e082 Compare December 13, 2024 20:45
@Buitragox Buitragox requested review from sinourain, jherreraa and a team December 13, 2024 20:45
@Buitragox
Copy link
Collaborator Author

@sinourain Hey I added some unit tests. It was a bit trickier than expected, verify also makes an additional request to get a JWT token so that needed to be stubbed as well. Let me know what you think.

Copy link
Contributor

@sinourain sinourain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants