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

3DS2 Analytics Delegate #9430

Open
wants to merge 6 commits into
base: feature/3ds2-2.2
Choose a base branch
from
Open

Conversation

Twigz
Copy link
Collaborator

@Twigz Twigz commented Oct 10, 2024

Summary

Adds a 3DS2 Analytics Delegate

Motivation

This allow the payments SDK to have finer grain control over information provided by the 3DS2 SDK, so that additional analytics information can be provided.

Testing

  • Added tests
  • Modified tests
  • Manually verified

@Twigz Twigz requested review from a team as code owners October 10, 2024 20:01
@@ -200,3 +217,18 @@ class StripeThreeDs2ServiceImpl @VisibleForTesting internal constructor(
private const val STRIPE_SDK_REFERENCE_NUMBER = "3DS_LOA_SDK_STIN_020100_00142"
}
}

class AnalyticsSingleton private constructor() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This won't work because it will not survive process death. I discussed with the team and we decided a java service provider will be the best approach. Can you remove this and replace with a ServiceLoader?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes sorry, thought I posted a comment about the Singleton to ask how your team wanted to handle that. 👍🏼

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