public class GooglePaymentConfiguration
extends java.lang.Object
Constructor and Description |
---|
GooglePaymentConfiguration() |
Modifier and Type | Method and Description |
---|---|
static GooglePaymentConfiguration |
fromJson(org.json.JSONObject json)
Parse an
GooglePaymentConfiguration from json. |
java.lang.String |
getDisplayName() |
java.lang.String |
getEnvironment() |
java.lang.String |
getGoogleAuthorizationFingerprint() |
java.lang.String |
getPaypalClientId() |
java.lang.String[] |
getSupportedNetworks() |
boolean |
isEnabled(android.content.Context context) |
public static GooglePaymentConfiguration fromJson(org.json.JSONObject json)
GooglePaymentConfiguration
from json.json
- The JSONObject
to parse.GooglePaymentConfiguration
instance with data that was able to be parsed from
the JSONObject
.public boolean isEnabled(android.content.Context context)
true
if Google Payment is enabled and supported in the current environment,
false
otherwise. Note: this value only pertains to the Braintree configuration, to check if
the user has Google Payment setup use
com.braintreepayments.api.GooglePayment#isReadyToPay(BraintreeFragment, BraintreeResponseListener)
public java.lang.String getGoogleAuthorizationFingerprint()
public java.lang.String getEnvironment()
public java.lang.String getDisplayName()
public java.lang.String[] getSupportedNetworks()
public java.lang.String getPaypalClientId()