braintree / braintree_java

Braintree Java library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
158 stars 98 forks source link

Pagination support for transaction search #77

Closed rprasanakumar closed 4 years ago

rprasanakumar commented 5 years ago

General information

Issue description

Does the braintree Java sdk support pagination for lazy loading? Say there are 6000 search results. Can we load few results say 10/20/30 per page and load other records using pagination. I delved little bit but failed to find a way to do it. If this feature is supported, It will be great if you can point me to the doc. Thank you.

Prasanna.

hollabaq86 commented 5 years ago

👋 @rprasanakumar, thanks for reaching out. Transaction searches currently don't support pagination. It's something we could add as a new feature, but we don't have an ETA on when that would be added to the SDK. In the meantime, you may want to look at the work we're doing with GraphQL as we do support paginating results with GraphQL requests.

However, your best option is storing transaction data in your own database to build paginated results.