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

3ds - onClose #103

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

3ds - onClose #103

wants to merge 6 commits into from

Conversation

hnguyen510
Copy link

Calling onClose for 3Ds to fix issue for this ticket (LI-63320).

@hnguyen510 hnguyen510 requested a review from a team as a code owner January 28, 2025 20:21
Copy link
Contributor

@mchoun mchoun left a comment

Choose a reason for hiding this comment

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

Was this tested to confirm that the onError callback is still executed? I took a look at the ticket and it wasn't clear what the root cause of the issue is.

I think that this conditional will not execute onError if result.success = false which was fixed in ticket DTPPCPSDK-2207.

@hnguyen510
Copy link
Author

hnguyen510 commented Feb 3, 2025

@mchoun I think that onError will execute if isCardFieldFlow is false. I am not sure how to test onError on xotestbed. Can you give some suggestion please. Do you think I should move my onClose after the onError so that on Error could still be execute?

Copy link
Contributor

@ravishekhar ravishekhar left a comment

Choose a reason for hiding this comment

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

🎉

@mchoun
Copy link
Contributor

mchoun commented Feb 5, 2025

@mchoun I think that onError will execute if isCardFieldFlow is false. I am not sure how to test onError on xotestbed. Can you give some suggestion please. Do you think I should move my onClose after the onError so that on Error could still be execute?

I think the best way to test that onError is still being executed properly is by passing something like a console.log() into the onError call back and simulate a result.success = false response from helios.

After looking at this fix we made here, it's actually not the onError scenario that I'm worried about. We want to make sure that that we are still calling onApprove if result.success = false since that is still a valid scenario.

@hnguyen510
Copy link
Author

Based on my understanding of the slack thread, onCancel doesn't mean it 3ds is cancelled. We will still passed additional information like onApprove, but the work will be on a different ticket.

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.

3 participants