PayPalClient

Used to tokenize PayPal accounts. For more information see the documentation

Constructors

Link copied to clipboard
constructor(context: Context, authorization: String, appLinkReturnUrl: Uri, deepLinkFallbackUrlScheme: String? = null)

Initializes a new PayPalClient instance

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Starts the PayPal payment flow by creating a PayPalPaymentAuthRequestParams to be used to launch the PayPal web authentication flow in PayPalLauncher.launch.

Link copied to clipboard
suspend fun tokenize(paymentAuthResult: PayPalPaymentAuthResult.Success): PayPalResult

After receiving a result from the PayPal web authentication flow via PayPalLauncher.handleReturnToApp, pass the resulting PayPalPaymentAuthResult.Success to this method to tokenize the PayPal account and receive a PayPalResult.Success containing a PayPalAccountNonce on success.