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

WorldPay: Fix element order for 3DS + stored cred #3172

Merged
merged 1 commit into from
Mar 12, 2019
Merged

WorldPay: Fix element order for 3DS + stored cred #3172

merged 1 commit into from
Mar 12, 2019

Conversation

bayprogrammer
Copy link
Contributor

WorldPay's XML DTD requires that the session comes after
storedCredentials. When using stored credential options with a 3DS
request we were ending up with the elements being generated in the wrong
order. This fixes the issue and ensures storedCredentials precede
session when both are to be included in the request document.

ECS-219

Unit:
44 tests, 242 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote
35 tests, 154 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

@bayprogrammer bayprogrammer requested a review from a team March 12, 2019 19:53
@bayprogrammer bayprogrammer self-assigned this Mar 12, 2019
Copy link
Member

@jknipp jknipp left a comment

Choose a reason for hiding this comment

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

👍LGTM.

I would like to not have to depend on the ordering of elements. 😞

WorldPay's XML DTD requires that the `session` comes after
`storedCredentials`. When using stored credential options with a 3DS
request we were ending up with the elements being generated in the wrong
order. This fixes the issue and ensures `storedCredentials` precede
`session` when both are to be included in the request document.

ECS-219

Unit:
44 tests, 242 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote
35 tests, 154 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Closes #3172
@bayprogrammer bayprogrammer merged commit e00c411 into activemerchant:master Mar 12, 2019
@bayprogrammer bayprogrammer deleted the ECS-219-stored-creds-3ds-bug branch March 12, 2019 22:18
whitby3001 pushed a commit to whitby3001/active_merchant that referenced this pull request Sep 3, 2019
WorldPay's XML DTD requires that the `session` comes after
`storedCredentials`. When using stored credential options with a 3DS
request we were ending up with the elements being generated in the wrong
order. This fixes the issue and ensures `storedCredentials` precede
`session` when both are to be included in the request document.

ECS-219

Unit:
44 tests, 242 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote
35 tests, 154 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Closes activemerchant#3172
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