handleReturnToApp

Handles the return from the Venmo authentication flow and tokenizes the result.

Call this method on onResume after the user completes the Venmo authentication and is returned to app.

If the Activity used to launch the Venmo flow has is configured with android:launchMode="singleTop", this method should be invoked in the onNewIntent method of the Activity.

This method:

  1. Extracts the authentication result from the intent

  2. Tokenizes the successful authentication

  3. Returns the final Venmo result via the callback

Parameters

pendingRequest

the VenmoPendingRequest.Started stored after successfully invoking VenmoLauncher.launch

intent

the intent to return to merchant's application containing a deep link result from the Venmo browser flow

callback

callback to receive the final Venmo result (success, cancel, or failure)