c# - How do I test for results in a Braintree Customer search? -


        var searchreq = new customersearchrequest().email.is(lk.email);         var customers = gateway.customer.search(searchreq);         var customer = customers.firstitem; 

when no results, firstitem throws argumentoutofrange exception. can see private field called ids has count 0 "maximumcount" 0. maximumcount dependable?

full disclosure: work @ braintree. if have further questions, feel free contact support.

the word 'dependable' ambiguous, short answer yes. maximumcount intended return count of entire result set search. result sets of on 100 included in sdk integration tests library.

note braintree api has a limit of 10,000 results returned customer search.

transaction searches return maximum of 20,000 results; other searches return maximum of 10,000 results.


Comments

Popular posts from this blog

shader - OpenGL Shadow Map -

stringtemplate - StringTemplate4 if conditional with length -