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

[RP1][iOS] Expose PayPal and Venmo App Installed for Merchants #1473

Open
wants to merge 3 commits into
base: shopper-insights-rp1-feature
Choose a base branch
from

Conversation

stechiu
Copy link
Collaborator

@stechiu stechiu commented Nov 22, 2024

For Shopper Insights, we want to create a public BTPayPalClient.isPayPalAppInstalled method and public BTVenmoClient.isVenmoAppInstalled method in BTPayPalClient

Summary of changes

  • Added BTPayPalClient.isPayPalAppInstalled and BTVenmoClient.isVenmoAppInstalled methods
  • Added unit tests

Checklist

  • Added a changelog entry
  • Tested and confirmed payment flows affected by this change are functioning as expected

Authors

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

@stechiu stechiu requested a review from a team as a code owner November 22, 2024 23:43
@stechiu stechiu changed the base branch from main to shopper-insights-rp1-feature November 23, 2024 00:22

/// Returns true if the proper Venmo app is installed and configured correctly, returns false otherwise.
@objc public func isVenmoAppInstalled() -> Bool {
@objc public func isVenmoAppSwitchAvailable() -> Bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

🤔 since this is public this would technically be a breaking change.

@scannillo I know on the original spec for this we had the app install checks in the Venmo and PayPal modules. Thinking more about it, does it make sense to move these into the shopper insights module? Since they are beta methods it could make more sense to keep them contained to that module vs being in the PayPal and Venmo feature.

Copy link
Contributor

Choose a reason for hiding this comment

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

Was just looking at this on the Android side and I think it makes more sense to keep these separated in the ShopperInsightsClient - otherwise we need to do refactoring with the current use of app installed methods in the PayPal module to make them public (or duplicate code).

Copy link
Contributor

Choose a reason for hiding this comment

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

Cool, totally agree. We can have Sammy update the specs in our wiki pages once she's back. Sorry to change this from what was in the ticket @stechiu - but lets move both of the app installed methods and tests to the Shopper Insights module.

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