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

NMI: Adding GooglePay and ApplePay #5146

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

javierpedrozaing
Copy link
Collaborator

Description

This commit add support to create transaction with GooglePay and ApplePay.
This payment methods are working for nmi_secure.

SER-1295

Unit test

Finished in 11.283174 seconds.

59 tests, 475 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

100% passed

5.23 tests/s, 42.10 assertions/s

Remote test

Finished in 115.513346 seconds.

55 tests, 199 assertions, 12 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

78.1818% passed

0.48 tests/s, 1.72 assertions/s

Rubocop

798 files inspected, no offenses detected

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 just a small comment

lib/active_merchant/billing/gateways/nmi.rb Outdated Show resolved Hide resolved
@javierpedrozaing javierpedrozaing force-pushed the SER-1295-nmi_add_google_and_apple_pay branch from ed3d022 to a2b2499 Compare June 17, 2024 14:08
@javierpedrozaing javierpedrozaing marked this pull request as ready for review June 17, 2024 14:15
Copy link
Collaborator

@Heavyblade Heavyblade left a comment

Choose a reason for hiding this comment

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

Looks pretty much ok @javierpedrozaing, left a comment just prevent possible issues with current customers (NMI have tone of transactions)

lib/active_merchant/billing/gateways/nmi.rb Show resolved Hide resolved
@javierpedrozaing javierpedrozaing force-pushed the SER-1295-nmi_add_google_and_apple_pay branch from a2b2499 to 14aff92 Compare June 17, 2024 22:24
Description
-------------------------
This commit add support to create transaction with GooglePay and
ApplePay.
This payment methods are working for nmi_secure.

Unit test
-------------------------
Finished in 11.283174 seconds.

59 tests, 475 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

100% passed

5.23 tests/s, 42.10 assertions/s

Remote test
-------------------------
Finished in 115.513346 seconds.

55 tests, 199 assertions, 12 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

78.1818% passed

0.48 tests/s, 1.72 assertions/s

Rubocop
-------------------------
798 files inspected, no offenses detected
@javierpedrozaing javierpedrozaing force-pushed the SER-1295-nmi_add_google_and_apple_pay branch from 14aff92 to 82fe7c4 Compare June 18, 2024 14:12
Copy link
Contributor

@naashton naashton left a comment

Choose a reason for hiding this comment

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

LGTM! Just a question about the decrypted_* fields?

Comment on lines +195 to +196
post[:decrypted_applepay_data] = 1
post[:decrypted_googlepay_data] = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Do both of these need to be set to 1 regardless of which payment method type is being used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hi @naashton base on the NMI docs yes, for both cases set 1 to indicate decrypted data is being sent.

@naashton naashton merged commit 941c6d2 into master Jul 17, 2024
5 checks passed
@naashton naashton deleted the SER-1295-nmi_add_google_and_apple_pay branch July 17, 2024 13:18
javierpedrozaing added a commit that referenced this pull request Jul 25, 2024
Description
-------------------------
This commit add support to create transaction with GooglePay and
ApplePay.
This payment methods are working for nmi_secure.

Unit test
-------------------------
Finished in 11.283174 seconds.

59 tests, 475 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

100% passed

5.23 tests/s, 42.10 assertions/s

Remote test
-------------------------
Finished in 115.513346 seconds.

55 tests, 199 assertions, 12 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

78.1818% passed

0.48 tests/s, 1.72 assertions/s

Rubocop
-------------------------
798 files inspected, no offenses detected

Co-authored-by: Javier Pedroza <jpedroza@spreedly.com>
javierpedrozaing added a commit that referenced this pull request Jul 25, 2024
Description
-------------------------
This commit add support to create transaction with GooglePay and
ApplePay.
This payment methods are working for nmi_secure.

Unit test
-------------------------
Finished in 11.283174 seconds.

59 tests, 475 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

100% passed

5.23 tests/s, 42.10 assertions/s

Remote test
-------------------------
Finished in 115.513346 seconds.

55 tests, 199 assertions, 12 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications

78.1818% passed

0.48 tests/s, 1.72 assertions/s

Rubocop
-------------------------
798 files inspected, no offenses detected

Co-authored-by: Javier Pedroza <jpedroza@spreedly.com>
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

4 participants