collectDeviceData

open fun collectDeviceData(@NonNull context: Context, @NonNull payPalDataCollectorRequest: PayPalDataCollectorRequest, @NonNull callback: PayPalDataCollectorCallback)

Collects device data for PayPal APIs.

We recommend that you call this method as early as possible, e.g. at app launch. If that's too early, call it at the beginning of customer checkout.

Use the return value on your server, e.g. with `Transaction.sale`.

Parameters

context

Android Context

payPalDataCollectorRequest

params for the data collection request


Deprecated

Deprecated. Use collectDeviceData Collects device data based on your merchant configuration.

We recommend that you call this method as early as possible, e.g. at app launch. If that's too early, call it at the beginning of customer checkout.

Use the return value on your server, e.g. with `Transaction.sale`.

Parameters

context

Android Context


open fun collectDeviceData(@NonNull context: Context, @Nullable riskCorrelationId: String, @NonNull callback: PayPalDataCollectorCallback)

Deprecated

Deprecated. Use collectDeviceData Collects device data for PayPal APIs.

We recommend that you call this method as early as possible, e.g. at app launch. If that's too early, call it at the beginning of customer checkout.

Use the return value on your server, e.g. with `Transaction.sale`.

Parameters

context

Android Context

riskCorrelationId

Optional client metadata id