[EPC-9645] Fix empty modal issue on 3DS2 fingerprint only actions#2933
Merged
khushboo-singhvi merged 3 commits intomainfrom Apr 16, 2025
Merged
[EPC-9645] Fix empty modal issue on 3DS2 fingerprint only actions#2933khushboo-singhvi merged 3 commits intomainfrom
khushboo-singhvi merged 3 commits intomainfrom
Conversation
khushboo-singhvi
approved these changes
Apr 4, 2025
shanikantsingh
approved these changes
Apr 16, 2025
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Description
The plugin loads the modal if there is any action returns from the
/paymentsAPI call. However, 3DS2 action can be completed frictionless under certain circumstances. In this case, the modal is shown without a content and creates a bad user experience.Ideally, this modal should be shown only if the action sub-type is
challenge.In order to identify the action, the plugin needs to wait for the response of
/submitThreeDS2Fingerprintas the final action will be revealed after this call. As the card component is responsible for this call, we decided to implement a callback to watch all handled actions by the card component and show the modal if the action is3DS2Challenge. Otherwise, the modal will be hidden during the payment journey.This PR solves the issue for regular and tokenized card payments methods as well as card wallets.
Tested scenarios
Following cases have been tested on card, card vault and Google Pay payment methods.