Skip to main content
Question

PurchaserInfo vs CustomerInfo

  • August 24, 2023
  • 1 reply
  • 160 views

Forum|alt.badge.img+5

I am upgrading from purchases_flutter 3.x to 5.x. The class PurchasesInfo was changed to CustomerInfo.

 

We upload PurchasersInfo Json to our server which parses the data. Have the contents or format of the data changed along with the change of the class? When inspecting the class CustomerInfo I find it has several JSON and String arrays so it’s difficult to tell what might have changed inside those arrays.

 

Thank you,

KeithB

This post has been closed for comments

1 reply

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

Hey @tkeithblack,

It’s definitely possible for the underlying JSON representation of CustomerInfo from the SDK can change over time. If you’re fetching from your server, I’d recommend instead to use our GET /subscribers endpoint as that would be the expected use-case for fetching from your server (rather than sending the data from the device to your server manually): https://www.revenuecat.com/reference/subscribers


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