AppReceiptValidator icon indicating copy to clipboard operation
AppReceiptValidator copied to clipboard

Eligible for free trial?

Open john-work-ios opened this issue 1 year ago • 1 comments

Hello,

I have been using this library for years now. Thank you! Is there a way to know if the user is eligible for free trial?

Best,

john-work-ios avatar Feb 23 '24 19:02 john-work-ios

You can do this by checking if there are any transactions (check through the Receipt's inAppPurchaseReceipts array) relating to the subscription (or subscription group). If there are none, the user is still eligible for a free trial ("introductory pricing") but once there is a such a transaction the user is no longer eligible. Similar to what is described here.

hannesoid avatar Feb 26 '24 08:02 hannesoid