Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eligible for free trial? #99

Open
john-work-ios opened this issue Feb 23, 2024 · 1 comment
Open

Eligible for free trial? #99

john-work-ios opened this issue Feb 23, 2024 · 1 comment

Comments

@john-work-ios
Copy link

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,

@hannesoid
Copy link
Contributor

hannesoid commented Feb 26, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants