Adyen: Fail unexpected 3DS responses #3546
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are certain situations where the initiator of a transaction is not
expecting or prepared to complete a 3DS challenge flow, yet an authorize
transaction triggers a 3DS auth response from Adyen.
Previously, if a 3DS flow was not expected, a Purchase was initiated,
and the auth step received a 3ds authentication response, the adapter
would assume the auth step succeeded, and perform the capture, for which
Adyen's response is not sufficient to indicate the money was actually
moved. This means the Purchase would be assumed to succeed when in fact
it was stalled at the 3DS auth step.
This change recognizes these situations and fails the transaction with a
meaningful message.
Remote:
82 tests, 276 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
Unit:
59 tests, 279 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed