Closed yeldarby closed 6 years ago
I should note as a followup that this does work. It's just the Transaction.lineItems
method that's broken.
var stream = gateway.transaction.search(function(search) {
search.customerId().is(<SOME_USER_ID_HERE>);
});
stream.on('data', function(t) {
gateway.transactionLineItem.findAll(transaction.id, function(e, items) {
console.log(items);
});
});
My guess is that there's something funky going on with the wrapping of the transaction search results, as the method does exist on the transaction object returns from transaction.sale
https://github.com/braintree/braintree_node/blob/dcd9f1984bcec888994e92c97cdcd7653976c90b/spec/integration/braintree/transaction_gateway_spec.js#L450-L464
We've identified the issue and are working on a fix. Thanks for the report!
@yeldarby We've deployed a fix to this issue in version 2.13.1.
General information
Issue description
I'm trying to use the
Transaction.lineItems
method and getting an error.Here's an minimal code snippet that reproduces the error: