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

HPs: Update NetworkTokenizationCreditCard flow #5178

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

almalee24
Copy link

Update NetworkTokenizationCreditCArd flow to now be under WalletData.

Remote
58 tests, 155 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 96.5517% passed

Unit
61 tests, 295 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 100% passed

@almalee24 almalee24 requested a review from a team July 15, 2024 20:46

three_d_secure[:source] ||= card_brand(card_or_token)

return unless (source = PAYMENT_DATA_SOURCE_MAPPING[three_d_secure[:source].to_sym])

xml.hps :SecureECommerce do
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this line needs to be the :Secure3D now according to the docs in the ticket.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or will there be a separate ticket for the 3dsecure updates?

Copy link
Author

Choose a reason for hiding this comment

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

Ah thanks for pointing that out, I definitely missed that bullet point.

Copy link
Author

Choose a reason for hiding this comment

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

Even though we have 3DS fields here it doesn't look like we support 3DS on our side for this gateway

@almalee24 almalee24 requested review from a team and DustinHaefele July 25, 2024 20:35
@DustinHaefele
Copy link
Contributor

@almalee24 Have you rerun the remote tests with the latest updates?

@almalee24
Copy link
Author

@almalee24 Have you rerun the remote tests with the latest updates?

Just saw this but yes I did

xml.hps :WalletData do
xml.hps :PaymentSource, PAYMENT_DATA_SOURCE_MAPPING[payment_method.source]
xml.hps :Cryptogram, payment_method.payment_cryptogram
xml.hps :ECI, payment_method.eci&.to_s&.sub!(/^0/, '') if payment_method.eci
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not use strip_leading_zero?

Copy link
Author

Choose a reason for hiding this comment

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

I can't even remember why but I'll update it do use strip_leading_zero

Update NetworkTokenizationCreditCArd flow to now be under
WalletData.

Remote
54 tests, 143 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
96.2963% passed
Unit
61 tests, 295 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
@almalee24 almalee24 merged commit 0f2ae6f into master Aug 14, 2024
5 checks passed
@almalee24 almalee24 deleted the update_hps_wallet_flow branch August 14, 2024 17:42
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