PayPalButton
fun PayPalButton(style: PayPalButtonColor, payPalRequest: PayPalRequest, authorization: String, appLinkReturnUrl: Uri, deepLinkFallbackUrlScheme: String, pendingRequestRepository: PendingRequestRepository = PendingRequestRepository(LocalContext.current, "paypal"), paypalTokenizeCallback: PayPalTokenizeCallback)
A composable that displays a PayPal branded button.
Parameters
style
: A PayPalButtonColor that determines the color of the button.
payPalRequest
: A PayPalRequest that provides the parameters to tokenize a paypal account.
authorization
: An authorization string to use for tokenization.
appLinkReturnUrl
: A Uri that sends back control to the host app after PayPal flow completes.
deepLinkFallbackUrlScheme
: Fallback scheme in case appLinkReturnUrl doesn't work.
paypalTokenizeCallback
: A PayPalTokenizeCallback that handles the result of the tokenization.