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

HiPay: Fix parse authorization string #5119

Merged
merged 1 commit into from May 21, 2024

Conversation

javierpedrozaing
Copy link
Collaborator

Description

This commit fixes the parse authorization string when the first value is nil also fixes a issue trying to get the payment_method.brand when the payment method is not a credit card

Unit test

Finished in 0.800901 seconds.

23 tests, 59 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

28.72 tests/s, 73.67 assertions/s

Remote test

Finished in 9.141401 seconds.

1 tests, 6 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

0.11 tests/s, 0.66 assertions/s

Rubocop

795 files inspected, no offenses detected

@javierpedrozaing javierpedrozaing marked this pull request as ready for review May 9, 2024 19:51
Copy link
Collaborator

@gasb150 gasb150 left a comment

Choose a reason for hiding this comment

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

This will require a different approach (I think).

Copy link
Collaborator

@gasb150 gasb150 left a comment

Choose a reason for hiding this comment

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

To Include in your tests.

test/unit/gateways/hi_pay_test.rb Show resolved Hide resolved
@javierpedrozaing javierpedrozaing force-pushed the SER-1235_HiPay_fix_authorization_string branch from 877ac11 to cee6068 Compare May 10, 2024 01:06
Copy link
Collaborator

@gasb150 gasb150 left a comment

Choose a reason for hiding this comment

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

LGTM

@javierpedrozaing javierpedrozaing force-pushed the SER-1235_HiPay_fix_authorization_string branch from cee6068 to 0378112 Compare May 16, 2024 16:17
@naashton naashton force-pushed the SER-1235_HiPay_fix_authorization_string branch from e0e467b to ffbcbe4 Compare May 21, 2024 18:02
Description
-------------------------
This commit fixes the parse authorization string when the first value is nil
also fixes a issue trying to get the payment_method.brand when the
payment method is not a credit card

Unit test
-------------------------
Finished in 0.800901 seconds.

23 tests, 59 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

28.72 tests/s, 73.67 assertions/s

Remote test
-------------------------
Finished in 9.141401 seconds.

1 tests, 6 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

0.11 tests/s, 0.66 assertions/s

Rubocop
-------------------------
795 files inspected, no offenses detected
@naashton naashton force-pushed the SER-1235_HiPay_fix_authorization_string branch from ffbcbe4 to 09d30af Compare May 21, 2024 18:04
@naashton naashton merged commit 15e704e into master May 21, 2024
0 of 5 checks passed
@naashton naashton deleted the SER-1235_HiPay_fix_authorization_string branch May 21, 2024 18:05
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.

None yet

3 participants