braintree / braintree-web

A suite of tools for integrating Braintree in the browser
https://developer.paypal.com/braintree/docs/start/hello-client/javascript/v3
MIT License
444 stars 134 forks source link

DATA_COLLECTOR_KOUNT_ERROR in versions 3.107.0+ #730

Closed Tankzor closed 2 weeks ago

Tankzor commented 3 weeks ago

General information

Issue description

We are receiving the following error trying to create a datacollector (braintree.dataCollector.create) with kount: true after updating braintree-web past 3.106.0. Currently broken in 3.111.0.

code: "DATA_COLLECTOR_KOUNT_ERROR"
details: undefined
message: "can't convert null to object"
name: "BraintreeError"
stack: ""
type: "MERCHANT"

Rolling back to 3.106.0 seems to fix the issue, or disabling kount in the call to braintree.dataCollector.create. Currently our call looks like this (only passing client):

braintree.dataCollector.create({ client: clientInstance, kount: true }, callback);
Tankzor commented 3 weeks ago

Update: turns out we only had kount enabled in the sandbox and we were using built-in paypal anti-fraud in production, so we've removed the kount: true in other environments so this doesn't affect us anymore. I'll leave the issue so you can fix whatever the problem might be, or close it.

braintreeps commented 2 weeks ago

Closing as a duplicate of https://github.com/braintree/braintree-web/issues/724