-
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
Authorize.NET: Update network token method #4852
Conversation
885ae68
to
1c9e44f
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.
This PR seems to remove any apple_pay
flagging for AuthNet. Are we sure AuthNet does not care about any flagging to let them know if the payment_method is apple_pay
or not?
Yes, I've been talking to them directly about this. The |
end | ||
end | ||
end | ||
|
||
def add_market_type_device_type(xml, payment, options) | ||
return if payment.is_a?(String) || card_brand(payment) == 'check' || card_brand(payment) == 'apple_pay' | ||
return unless payment.is_a?(CreditCard) && !payment.is_a?(NetworkTokenizationCreditCard) |
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.
return unless payment.is_a?(CreditCard) && !payment.is_a?(NetworkTokenizationCreditCard) | |
return if payment.is_a?(NetworkTokenizationCreditCard) |
Is there a way to avoid the double negative 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 can split them in two different lines
1c9e44f
to
8c66260
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.
Looks good to me! Thanks for diving deep into this one 🚀
8c66260
to
0ddc0eb
Compare
Update network token payment method to clarify what is being sent. Remote: 85 tests, 304 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed Unit: 122 tests, 684 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
0ddc0eb
to
544806e
Compare
Update network token payment method to clarify what is being sent.
Remote:
85 tests, 304 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed
Unit:
122 tests, 684 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed