Collecting device data

It is recommended that all customer-initiated transactions include device data. Device data increases the accuracy of our available Advanced Fraud Management Tools in determining when a transaction is fraudulent.

Integration

Add the Braintree/DataCollector subspec to your Podfile. If you're using Carthage, add BraintreeDataCollector.framework to your app.

Ruby
pod 'Braintree'
pod 'Braintree/DataCollector'

Call collectFraudData to collect the appropriate device data.

[dataCollector collectFraudData:^(NSString * _Nonnull deviceData) {
    // Send deviceData to your server
  }];

Using Device Data

Include the device data string in the Transaction.sale() call on your server. If our Advanced Fraud Management Tools detect a high probability that the transaction is fraudulent it will be rejected.

Contact us for more information.