PayPalClient
class 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
Functions
Link copied to clipboard
suspend fun createPaymentAuthRequest(context: Context, payPalRequest: PayPalRequest): PayPalPaymentAuthRequest
fun createPaymentAuthRequest(context: Context, payPalRequest: PayPalRequest, callback: PayPalPaymentAuthCallback)
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
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.