initialize
fun initialize(activityResultCaller: ActivityResultCaller, authorization: String, appLinkReturnUrl: Uri, deepLinkFallbackUrlScheme: String? = null)
Initializes the Venmo button with the required parameters needed to start the payment flow.
Call this before setting a Venmo request or handling any payment flows.
Parameters
authorization
a Tokenization Key or Client Token used to authenticate
appLinkReturnUrl
a Uri containing the Android App Link website associated with merchant's application to be used to return to merchant's app from the Venmo payment flows.
deepLinkFallbackUrlScheme
a return url scheme that will be used as a deep link fallback when returning to merchant's app via App Link is not available (buyer unchecks the "Open supported links" setting).
activityResultCaller
an ActivityResultCaller (typically a Fragment or Activity) that will be used to register the ActivityResultLauncher for the Venmo browser switch flow.