VenmoClient

open class VenmoClient

Used to create and tokenize Venmo accounts. For more information see the documentation

Constructors

Link copied to clipboard
constructor(@NonNull activity: FragmentActivity, @NonNull braintreeClient: BraintreeClient)
Create a new instance of VenmoClient from within an Activity using a BraintreeClient.
constructor(@NonNull fragment: Fragment, @NonNull braintreeClient: BraintreeClient)
Create a new instance of VenmoClient from within a Fragment using a BraintreeClient.
constructor(@NonNull braintreeClient: 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
open fun isReadyToPay(context: Context, callback: VenmoIsReadyToPayCallback)
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
Use this method with the manual browser switch integration pattern.
Link copied to clipboard
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
open fun setListener(listener: VenmoListener)
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
Start the Pay With Venmo flow.