question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Documentation error) Collecting deviceData only returns "correlation_id" but not "device_session_id"

See original GitHub issue

General 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’s deviceData (expected).
  • With dataCollector: true, I do receive the field deviceData, but it only has inside the correlation_id and no the device_session_id (wrong?)
  • With dataCollector: {kount: true}, I receive deviceDatawith everything includingdevice_session_id` (???)
  • With dataCollector: {kount: false}, again I receive deviceDatawith onlycorrelation_id, no device_session_id` (???)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
crookedneighborcommented, Jun 23, 2021

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)

1reaction
crookedneighborcommented, Jun 22, 2021

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 with dataCollector: { paypal: false, kount: true }

Read more comments on GitHub >

github_iconTop Results From Across the Web

SharePoint Correlation ID in error messages - Microsoft Support
The correlation ID is not an error number or code. Simply, it's a GUID (globally unique identifier) that's automatically generated for every request...
Read more >
Transaction: Sale | Node.js - PayPal Developer
Querying this value returns a collection of custom field values stored on the transaction object. When storing a new customer in the Vault,...
Read more >
Solved: Splunk - Stat count return wrong values
- I send 3 JSON events. Each event has one "correlationId" top-level JSON field with the same value. So filtering on that corelationId...
Read more >
Reference | Braintree GraphQL API
Does not verify existence except for payment methods. ... Capture an authorized transaction and return a payload that includes details of the transaction....
Read more >
Session Object - EMSX API Programmers Guide
Connecting and creating a session object for EMSX API uses BBCOMM for desktop ... The CorrelationID is unique to the subscription only and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found