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
constructor(context: Context, authorization: String)

Initializes a new DataCollector instance

constructor(braintreeClient: BraintreeClient, magnesInternalClient: MagnesInternalClient = MagnesInternalClient(), uuidHelper: UUIDHelper = UUIDHelper(), dispatcher: CoroutineDispatcher = Dispatchers.Main, coroutineScope: CoroutineScope = CoroutineScope(dispatcher))

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Collects device data for PayPal APIs.

Link copied to clipboard

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.