Package-level declarations

Types

Link copied to clipboard
class PendingRequestException @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP]) constructor(message: String? = "Unable to recover pending request. Cannot complete flow.") : BraintreeException

Error class thrown when there's an issue fetching the pending request to complete the flow.

Link copied to clipboard
class PendingRequestRepository(context: Context, moduleName: String, dataStore: DataStore<Preferences> = context.dataStore, dispatcher: CoroutineDispatcher = Dispatchers.IO)

Repository responsible for storing and retrieving the pending request using DataStore.

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun PayPalButtonView(style: PayPalButtonColor, enabled: Boolean = true, onClick: () -> Unit)
Link copied to clipboard
Link copied to clipboard
fun VenmoButton(style: VenmoButtonColor, venmoRequest: VenmoRequest, authorization: String, appLinkReturnUrl: Uri, deepLinkFallbackUrlScheme: String? = null, pendingRequestRepository: PendingRequestRepository = PendingRequestRepository(LocalContext.current, "venmo"), venmoTokenizeCallback: VenmoTokenizeCallback)

A composable that displays a Venmo branded button.

Link copied to clipboard
fun VenmoButtonView(style: VenmoButtonColor, enabled: Boolean = true, onClick: () -> Unit)