handleReturnToApp

Captures and delivers the result of a local payment authentication flow.

For most integrations, this method should be invoked in the onResume method of the Activity used to invoke LocalPaymentLauncher.launch.

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

Return

a LocalPaymentAuthResult.Success that should be passed to LocalPaymentClient.tokenize to complete the flow, or LocalPaymentAuthResult.NoResult if the user canceled the payment flow, or returned to the app without completing the authentication flow.

Parameters

pendingRequest
intent

the intent to return to your application containing a deep link result from the local payment flow