public class Venmo
extends java.lang.Object
| Constructor and Description |
|---|
Venmo() |
| Modifier and Type | Method and Description |
|---|---|
static void |
authorizeAccount(BraintreeFragment fragment) |
static void |
authorizeAccount(BraintreeFragment fragment,
boolean vault)
Start the Venmo flow.
|
static void |
authorizeAccount(BraintreeFragment fragment,
boolean vault,
java.lang.String profileId)
Start the Pay With Venmo flow.
|
static boolean |
isVenmoInstalled(android.content.Context context) |
static void |
openVenmoAppPageInGooglePlay(BraintreeFragment fragment)
Launches an
Intent pointing to the Venmo app on the Google Play Store |
public static boolean isVenmoInstalled(android.content.Context context)
context - A context to access the installed packages.public static void openVenmoAppPageInGooglePlay(BraintreeFragment fragment)
Intent pointing to the Venmo app on the Google Play Storefragment - used to open the Venmo's Google Play Storepublic static void authorizeAccount(BraintreeFragment fragment, boolean vault, java.lang.String profileId)
If the Venmo app is not available, AppSwitchNotAvailableException will be sent to BraintreeErrorListener.onError(Exception).
fragment - BraintreeFragmentvault - If true, and you are using Client Token authorization with a customer ID, this payment method will
be added to your customer's vault. @see our
docs on client authorization for more info.profileId - The Venmo profile ID to be used during payment authorization. Customers will see the business
name and logo associated with this Venmo profile, and it will show up in the Venmo app as a "Connected Merchant".
Venmo profile IDs can be found in the Braintree Control Panel. Passing `null` will use the default Venmo profile.public static void authorizeAccount(BraintreeFragment fragment, boolean vault)
If the Venmo app is not available, AppSwitchNotAvailableException will be sent to BraintreeErrorListener.onError(Exception).
fragment - BraintreeFragmentvault - If true, and you are using Client Token authorization with a customer ID, this payment method will
be added to your customer's vault. @see our
docs on client authorization for more info.public static void authorizeAccount(BraintreeFragment fragment)