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

PayPal: Remove Vault Listener Pattern #308

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

Conversation

sshropshire
Copy link
Collaborator

@sshropshire sshropshire commented Dec 16, 2024

Summary of changes

  • This PR migrates the PayPalClient vault flow away from the listener pattern.
  • Migration Guide updates will come in a later PR
  • Users must now balance calls to PayPalWebCheckoutClient.vault() with calls to PayPalWebCheckoutClient.finishVault() to complete a vault flow
  • This PR is a continuation of PayPal: Remove Checkout Listener Pattern #307

Checklist

  • Added a changelog entry

Authors

List GitHub usernames for everyone who contributed to this pull request.

@sshropshire sshropshire marked this pull request as ready for review December 16, 2024 20:34
@sshropshire sshropshire requested a review from a team as a code owner December 16, 2024 20:34
analytics.notifyVaultAuthChallengeFailed(request.setupTokenId)
vaultListener?.onPayPalWebVaultFailure(result.error)
}

is PayPalPresentAuthChallengeResult.Success ->
analytics.notifyVaultAuthChallengeStarted(request.setupTokenId)
Copy link
Collaborator

@KunJeongPark KunJeongPark Dec 18, 2024

Choose a reason for hiding this comment

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

I think in iOS, we just have "challenge-required" event before launching a web view.
So if we wanted to track success/failure of the entire 3ds flow including the web view launch, we would have a starting point.

I guess Android equivalent is "challenge-received" so you just have an extra "start" on the auth.

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