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

We tried to rollback the libs/dropin but the result is the same. #656

Closed hmcmann65 closed 1 year ago

hmcmann65 commented 2 years ago

We tried to rollback the libs/dropin but the result is the same.

We also tried to provide a callback function and wrap the verifyCard in a Promise and using the resolve() reject() to continue our flow. But also in this case the callback is never called.

return new Promise((resolve, reject) => {
  instance.verifyCard(
    {
      onLookupComplete: function (data, next) {
        console.log("onLookupComplete", data);
        next();
      },
      amount: dsData.amount,
      nonce: dsData.nonce,
      bin: dsData.bin,
      email: dsData.email,
    },
    function (err, payload) {
      console.log("callback", { err, payload });
      if (err) {
        return reject(err);
      }

      return resolve(payload);
    }
  );
})

Originally posted by @hitech95 in https://github.com/braintree/braintree-web/issues/655#issuecomment-1326365358

cgdibble commented 1 year ago

Since this is a continuation of the linked issue, #655, this will be closed as a duplicate. Please keep to the original open issue, thanks.