public class PayPalOneTouchCore
extends java.lang.Object
| Constructor and Description |
|---|
PayPalOneTouchCore() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getClientMetadataId(android.content.Context context)
Gets a Client Metadata ID at the time of future payment activity.
|
static java.lang.String |
getClientMetadataId(android.content.Context context,
java.lang.String pairingId)
Gets a Client Metadata ID at the time of future payment activity.
|
static FptiManager |
getFptiManager(android.content.Context context) |
static PendingRequest |
getStartIntent(android.content.Context context,
Request request)
Get a
PendingRequest containing an Intent used to start a PayPal
authentication request using the best possible authentication mechanism: wallet or browser. |
static boolean |
isWalletAppInstalled(android.content.Context context) |
static Result |
parseResponse(android.content.Context context,
Request request,
android.content.Intent data)
Gets a
Result from an Intent returned by either the PayPal Wallet app or
the browser. |
static void |
useHardcodedConfig(android.content.Context context,
boolean useHardcodedConfig) |
public static boolean isWalletAppInstalled(android.content.Context context)
context - true if the modern wallet app is installed (one that has either v1 or v2 touch
intents), false if the wallet app is older than the touch releases, or not present.public static PendingRequest getStartIntent(android.content.Context context, Request request)
PendingRequest containing an Intent used to start a PayPal
authentication request using the best possible authentication mechanism: wallet or browser.context - request - the Request used to build the Intent.PendingRequest. PendingRequest.isSuccess() should be
checked before attempting to use the Intent it contains. If true an
Intent was created and can be used to start a PayPal authentication request.
If false it is not possible to authenticate given the current environment
and request.public static Result parseResponse(android.content.Context context, Request request, android.content.Intent data)
Result from an Intent returned by either the PayPal Wallet app or
the browser.public static java.lang.String getClientMetadataId(android.content.Context context)
context - The application contextpublic static java.lang.String getClientMetadataId(android.content.Context context,
java.lang.String pairingId)
context - The application contextpairingId - The desired pairing idpublic static void useHardcodedConfig(android.content.Context context,
boolean useHardcodedConfig)
public static FptiManager getFptiManager(android.content.Context context)