I work at Braintree. If you have more questions, please reach out to our support team.
Take a look at the Braintree .NET search result documentation:
Searches return a
ResourceCollection
which implementsIEnumerable
, so you can iterate over them like other enumerable classes.
var request = new TransactionSearchRequest().
Status.Is(TransactionStatus.AUTHORIZED);
ResourceCollection<Transaction> collection = gateway.Transaction.Search(request);
foreach (Transaction transaction in collection) {
Console.WriteLine(transaction.Id);
}
However, keep in mind searching for a large number of transactions can be slow, and you're limited to 10,000 results. We recommend instead that you store the information you'll need later when you get back the transaction after creating it.