public class DataCollector
extends java.lang.Object
| Constructor and Description |
|---|
DataCollector() |
| Modifier and Type | Method and Description |
|---|---|
static void |
collectDeviceData(BraintreeFragment fragment,
BraintreeResponseListener<java.lang.String> listener)
Collect device information for fraud identification purposes.
|
static void |
collectDeviceData(BraintreeFragment fragment,
java.lang.String merchantId,
BraintreeResponseListener<java.lang.String> listener)
Collects device data based on your merchant configuration.
|
static void |
collectPayPalDeviceData(BraintreeFragment fragment,
BraintreeResponseListener<java.lang.String> listener)
Collect PayPal device information for fraud identification purposes.
|
static java.lang.String |
getPayPalClientMetadataId(android.content.Context context)
Collect device information for fraud identification purposes from PayPal only.
|
public static void collectDeviceData(BraintreeFragment fragment, BraintreeResponseListener<java.lang.String> listener)
fragment - BraintreeFragmentlistener - to be called with the device data String to send to Braintree.public static void collectDeviceData(BraintreeFragment fragment, java.lang.String merchantId, BraintreeResponseListener<java.lang.String> listener)
fragment - BraintreeFragmentmerchantId - Optional - Custom Kount merchant id. Leave blank to use the default.listener - listener called with the deviceData string that should be passed into server-side calls, such as `Transaction.sale`.public static void collectPayPalDeviceData(BraintreeFragment fragment, BraintreeResponseListener<java.lang.String> listener)
fragment - BraintreeFragmentlistener - listener to be called with the device data String to send to Braintree.public static java.lang.String getPayPalClientMetadataId(android.content.Context context)
context - A valid Context