Question

PurchaserInfo vs CustomerInfo

  • 25 August 2023
  • 1 reply
  • 33 views

Userlevel 1
Badge +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


1 reply

Userlevel 6
Badge +8

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

Reply