lib/utils/mercadopagoError.js
function (resolve, reject, callback) {
  callback = preConditions.getCallback(callback);

  return requestManager.generateAccessToken().then(function () {
    return requestManager.exec(execOptions);
  }).then(function (response) {
    resolve(response);
    return callback.apply(null, [null, response]);
  }).catch(function (err) {
    reject(err);
    return callback.apply(null, [err, null]);
  });
}
function (resolve, reject, callback) {
  callback = preConditions.getCallback(callback);

  return requestManager.generateAccessToken().then(function () {
    return requestManager.exec(execOptions);
  }).then(function (response) {
    resolve(response);
    return callback.apply(null, [null, response]);
  }).catch(function (err) {
    reject(err);
    return callback.apply(null, [err, null]);
  });
}
function ( resolve , reject , callback ) { callback = preConditions . getCallback ( callback ) ; return requestManager . generateAccessToken ( ) . then ( function ( ) { return requestManager . exec ( execOptions ) ; } ) . then ( function ( response ) { resolve ( response ) ; return callback . apply ( null , [ null , response ] ) ; } ) . catch ( function ( err ) { reject ( err ) ; return callback . apply ( null , [ err , null ] ) ; } ) ; }
Execute request using the requestManager and execOptions
@param resolve
@param reject
@param callback
@returns {*}
Execute request using the requestManager and execOptions