DataCollector
class DataCollector @RestrictTo(value = [RestrictTo.Scope.LIBRARY_GROUP] ) constructor(braintreeClient: BraintreeClient, magnesInternalClient: MagnesInternalClient = MagnesInternalClient(), uuidHelper: UUIDHelper = UUIDHelper(), dispatcher: CoroutineDispatcher = Dispatchers.Main, coroutineScope: CoroutineScope = CoroutineScope(dispatcher))
PayPalDataCollector is used to collect PayPal specific device information to aid in fraud detection and prevention.
Constructors
Link copied to clipboard
Initializes a new DataCollector instance
constructor(braintreeClient: BraintreeClient, magnesInternalClient: MagnesInternalClient = MagnesInternalClient(), uuidHelper: UUIDHelper = UUIDHelper(), dispatcher: CoroutineDispatcher = Dispatchers.Main, coroutineScope: CoroutineScope = CoroutineScope(dispatcher))
Functions
Link copied to clipboard
fun collectDeviceData(context: Context, request: DataCollectorRequest, callback: DataCollectorCallback)
Collects device data for PayPal APIs.
Link copied to clipboard
fun collectDeviceDataOnSuccess(context: Context, request: DataCollectorRequest, callback: DataCollectorCallback)
This method should be used for markets where high coverage of device data is needed (ex: Predictions Market). Collects device data based on your merchant configuration.