Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
client.create({ authorization: braintreeParams.token }, function (
clientErr,
clientInstance
) {
if (clientErr) {
showErrorMessage(loadingErrorMsg);
return;
}
dataCollector.create({ client: clientInstance, kount: true }, function (
clientErr,
dataCollectorInstance
) {
if (clientErr) {
showErrorMessage(loadingErrorMsg);
return;
}
deviceDataInput.value = dataCollectorInstance.deviceData;
});
var options = {
client: clientInstance,
styles: {
input: {
"font-size": "16px",
Braintree.create({ authorization }, (err, clientInstance) => {
if (err) {
this.onError(err);
} else {
this.create(clientInstance, onAuthorizationSuccess);
if (this.wrapperHandlers.onDataCollectorInstanceReady) {
BraintreeDataCollector.create({
client: clientInstance,
kount: true,
}, this.wrapperHandlers.onDataCollectorInstanceReady);
}
}
});
}