Question

How do I find the very first receipt using the Flutter SDK?

  • 5 September 2021
  • 1 reply
  • 12 views

Badge

Hi,

 

I’m using the Flutter SDK for auto-renewing subscription handling (with free trial).

I need to find the very first date the user subscribed (trial subscription).

Can I do this using the Flutter SDK?


1 reply

Userlevel 1
Badge +4

Hi @Maduranga,

From the SDK, you can access the original purchase date of an entitlement through the `EntitlementInfo` object in `PurchaserInfo`. You can see the exact key from our Flutter SDK here.

Here’s a list of everything in `EntitlementInfo` to give you a better idea: https://docs.revenuecat.com/docs/purchaserinfo#get-entitlement-information 

Let me know if you have any other questions!

Reply