Skip to content

Conversation

kgangineni
Copy link
Collaborator

Thank you for your contribution to PayPal.

Before submitting this PR, note that we cannot accept language translation PRs. We have a dedicated localization team to provide the translations. If there is an error in a specific translation, you may open an issue and we will escalate it to the localization team.

Summary of changes

Checklist

  • Added a changelog entry

Authors

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

* ⏺ Add AuthenticationSecureTokenServiceAPI to fetch low scoped access token

  - Add headers parameter to APIRequest for Basic auth support
  - Convert PayPalWebCheckoutClient.start() to suspend function
  - Integrate token fetching before launching web checkout
  - Add comprehensive error handling for token fetch failures

* ⏺ Add callback-based start function with PayPalWebCheckoutCallback interface

  - Create PayPalWebCheckoutCallback fun interface following CardApproveOrderCallback pattern
  - Add overloaded start() function accepting PayPalWebCheckoutCallback
…ions

  - Implement FetchClientToken class for OAuth2 client credentials flow
  - Add headers parameter to APIRequest for Basic auth support
  - Convert PayPalWebCheckoutClient.start() to suspend function
  - Integrate token fetching before launching web checkout
  - GraphQL integration for PatchCcoWithAppSwitchEligibility
  - Integrate app switch eligibility, get redirect URL for launching checkout
  - Launch with redirect URL when available, fallback to web checkout
  - Add app switch eligibility check for vault functionality
* Demo app UI changes, label changes removing web in headers to include app switch
* Provide way to opt-in or out in for app switch in demo app
* added required params while creating order, payment tokens to support app switch
* Implement PayPal app installation check for app switch flow

  - Only attempt app switch when PayPal mobile app is installed
  - Fall back to web checkout/vault when PayPal app not detected
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.

1 participant