launch
fun launch(activity: ComponentActivity, paymentAuthRequest: PayPalPaymentAuthRequest.ReadyToLaunch): PayPalPendingRequest
Launches the PayPal flow by switching to a web browser for user authentication
Return
PayPalPendingRequest a PayPalPendingRequest.Started should be stored to complete the flow upon return to app in PayPalLauncher.handleReturnToApp, or a PayPalPendingRequest.Failure with an error if the PayPal flow was unable to be launched in a browser.
Parameters
activity
the Android Activity from which you will launch the web browser
paymentAuthRequest
a PayPalPaymentAuthRequest.ReadyToLaunch received from calling PayPalClient.createPaymentAuthRequest