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.

kgangineni and others added 11 commits July 7, 2025 14:42
* ⏺ 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
* mark few todos regarding instance state
* mark todos regarding switching threads in web checkout client
* Fixed unit tests
* improve coroutines and sending dispatchers in constructors
* improve coroutines and sending dispatchers in constructors
* fix static analysis
@kgangineni kgangineni marked this pull request as ready for review November 4, 2025 16:42
Comment on lines +5 to +6
* Add overloaded functions with callbacks for `start` and `vault` methods in
`PayPalWebCheckoutClient`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this CHANGELOG entry a duplicate? I see a similar one listed in version 2.3.0 for "Add PayPalWebCheckoutClient.start(activity, request, callback) method with asynchronous callback support."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants