VenmoClient
Used to create and tokenize Venmo accounts. For more information see the documentation
Constructors
Link copied to clipboard
Create a new instance of VenmoClient from within an Activity using a BraintreeClient.
Create a new instance of VenmoClient from within a Fragment using a BraintreeClient.
Create a new instance of VenmoClient using a BraintreeClient.
Functions
Link copied to clipboard
Make sure to call this method after parseBrowserSwitchResult parses a BrowserSwitchResult successfully to prevent multiple invocations of browser switch event handling logic.
Link copied to clipboard
Before starting the Venmo flow, use this method to check whether Venmo is supported and set up on the device.
Link copied to clipboard
Check if Venmo app switch is available.
Link copied to clipboard
open fun onActivityResult(@NonNull context: Context, resultCode: Int, @Nullable data: Intent, @NonNull callback: VenmoOnActivityResultCallback)
Link copied to clipboard
open fun onBrowserSwitchResult(@NonNull browserSwitchResult: BrowserSwitchResult, @NonNull callback: VenmoOnActivityResultCallback)
Use this method with the manual browser switch integration pattern.
Link copied to clipboard
open fun parseBrowserSwitchResult(@NonNull context: Context, @Nullable intent: Intent): BrowserSwitchResult
After calling tokenizeVenmoAccount, call this method in your Activity or Fragment's onResume() method to see if a response was provided through deep linking.
Link copied to clipboard
Add a VenmoListener to your client to receive results or errors from the Venmo flow.
Link copied to clipboard
Launches an Android Intent pointing to the Venmo app on the Google Play Store
Link copied to clipboard
open fun tokenizeVenmoAccount(@NonNull activity: FragmentActivity, @NonNull request: VenmoRequest, @NonNull callback: VenmoTokenizeAccountCallback)
Start the Pay With Venmo flow.