(Documentation error) Collecting deviceData only returns "correlation_id" but not "device_session_id"
See original GitHub issueGeneral information
- SDK/Library version: 1.30.1
- Environment: Sandbox
- Browser and OS: macOS Big Sur, latest versions of Safari, Firefox, and Chrome
Issue description
Dear Braintree folks,
I’m testing collecting device data for better fraud detection. I use your Drop-in module, version 1.30.1 (latest as of today; 2021-06-22).
In my sandbox, I have “Fraud Protection” enabled (not the “Advanced”). As far as I know, I do not have anything configured for “Kount”, which I even think it’s deprecated?
I’m following the instructions here to the letter: https://developer.paypal.com/braintree/docs/guides/premium-fraud-management-tools/client-side#drop-in
When I set the dataCollector
field to true (in dropin.create), I do receive in the payload a field "deviceData"
. However, this stringified object only has the "correlation_id"
value. I do not receive anything else, in particular I do not get any "device_session_id"
.
Moreover, when I check the transaction in braintree sandbox GUI, the interface tells me that indeed no device data was collected.
The strange thing, however, is that if I set dataCollector = {kount: true}
(in dropin.create), I do eventually receive a "deviceData"
field, which also has the expected "device_session_id"
value.
Is this expected? What am I doing wrong?
More info
Even in this CodePen example prepared by you, I observe the same behavior:
- With no
dataCollector
field, I do not receive any payload’sdeviceData
(expected). - With
dataCollector: true
, I do receive the fielddeviceData
, but it only has inside thecorrelation_id
and no thedevice_session_id
(wrong?) - With
dataCollector: {kount: true}, I receive
deviceDatawith everything including
device_session_id` (???) - With
dataCollector: {kount: false}, again I receive
deviceDatawith only
correlation_id, no
device_session_id` (???)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
I agree the documentation could use some updating. I’ll re-open this issue until we can get it fixed up.
Correct, you should only be seeing a
correlation_id
in the device data if you are not using Kount. (which at this point should only be used by a small set of merchants who have been using it for a long time)This is all expected.
device_session_id
is only for Kount.PayPal’s advanced fraud tooling is enabled by default with Data Collector, so you’ll get the
correlation_id
param unless you explicitly opt out of it withdataCollector: { paypal: false, kount: true }