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 Launcher API #808

Merged
merged 19 commits into from
Oct 23, 2023
Merged

3DS Launcher API #808

merged 19 commits into from
Oct 23, 2023

Conversation

sarahkoop
Copy link
Contributor

Summary of changes

  • Add 3DS launcher API
  • Consolidate performVerification and continuePerformVerification with the addition of the ThreeDSecureLauncher the determination of whether to "continue" with the verification happens before launching now
  • Remove some of the unsupported 3DS V1 logic to allow for simplified integration - the remaining V1 code cleanup will happen in a future PR
  • Note: Method/callback/result object names have not been updated to keep this PR diff smaller while we determine the best naming convention to follow throughout modules (Cardinal public naming convention will not stay - just kept the name of the existing class made public for now)

Checklist

  • Added a changelog entry

Authors

@sarahkoop sarahkoop requested a review from a team as a code owner October 18, 2023 19:59

public interface CardinalResultCallback {

void onCardinalResult(@NonNull CardinalResult cardinalResult);
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wait nevermind, I see now.

public ThreeDSecureClient(@NonNull BraintreeClient braintreeClient) {
this(null, null, braintreeClient, new CardinalClient(),
this(braintreeClient, new CardinalClient(),
Copy link
Contributor

Choose a reason for hiding this comment

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

🥹

Copy link
Contributor

@sshropshire sshropshire left a comment

Choose a reason for hiding this comment

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

🙌

@sshropshire
Copy link
Contributor

This is somewhat off topic, but I always found it odd that ThreeDSecureInfo.java is located in the :Card module. Wondering if maybe we have a chance to fix this in v5?

@sarahkoop
Copy link
Contributor Author

This is somewhat off topic, but I always found it odd that ThreeDSecureInfo.java is located in the :Card module. Wondering if maybe we have a chance to fix this in v5?

We have a ticket to create a ThreeDSecureNonce class in v5 which should resolve that issue - it'll mean we aren't exactly aligned with iOS but I think it's a good move 👍

CHANGELOG.md Outdated Show resolved Hide resolved

import androidx.annotation.NonNull;

public interface CardinalResultCallback {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this callback need a docstring?

@sarahkoop sarahkoop merged commit 71450da into v5 Oct 23, 2023
@sarahkoop sarahkoop deleted the 3ds_launcher_api branch October 23, 2023 15:12
@scannillo scannillo mentioned this pull request Oct 31, 2023
1 task
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