Skip to main content
Question

Pagination of purchase response array?


Forum|alt.badge.img+3

In the case if the purchase history has to be automatically paginated (if user has alot of purchase history), will it still give us the most recent purchase via nonSubscriptionTransactions.len - 1 ? 

This post has been closed for comments

2 replies

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 501 replies
  • April 5, 2023

Hey @dz1200,

Can you clarify where you’re getting a paginated payment history? Generally from the SDK, you can get a current snapshot of the user’s entitlements and purchased product IDs, but CustomerInfo doesn’t include a full transaction history.

You can read more about what’s included here: https://www.revenuecat.com/docs/customer-info


Forum|alt.badge.img+3
  • Author
  • New Member
  • 2 replies
  • April 5, 2023
cody wrote:

Hey @dz1200,

Can you clarify where you’re getting a paginated payment history? Generally from the SDK, you can get a current snapshot of the user’s entitlements and purchased product IDs, but CustomerInfo doesn’t include a full transaction history.

You can read more about what’s included here: https://www.revenuecat.com/docs/customer-info

Hi cody,

The doc states

“An array of all the non-consumable product identifiers purchased by the user”

I just wanted to make sure no matter the size of user buy history, I can always get the most recent, or that if you guys end up paginating it in the future, it’ll give us back the tail end of the history

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings