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

Cybersource: Update order of XML fields #5302

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

Conversation

almalee24
Copy link

Update order of XML fields for add_auth_service with this new order aggregatorID, reconciliationID, firstRecurringPayment and mobileRemotePaymentType can now be passed for NetworkTokenizationCreditCard.

Update order of XML fields for add_auth_service with
this new order aggregatorID, reconciliationID, firstRecurringPayment
and mobileRemotePaymentType can now be passed for NetworkTokenizationCreditCard.
@almalee24 almalee24 requested a review from a team October 10, 2024 18:14
when :apple_pay, :google_pay
xml.tag! 'paymentSolution', @@wallet_payment_solution[payment_method.source]
end
payment_solution = payment_method.try(:network_token?) ? NT_PAYMENT_SOLUTION[payment_method.brand] : @@wallet_payment_solution[payment_method.source]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor detail. I think we could skip the .try here, since the early return guarantees that it is a NetworkTokenizationCreditCard. Same thing in the add_payment_network_token method.

Copy link
Author

Choose a reason for hiding this comment

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

NetworkTokenizationCreditCard can be Network Token, ApplePay or GooglePay and payment_method.try(:network_token?) ensures that it is a Network Token.

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.

2 participants