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

Purchase cancellationDate is not only for renewable subscribtions #100

Open
sjvc opened this issue Jul 6, 2022 · 6 comments
Open

Purchase cancellationDate is not only for renewable subscribtions #100

sjvc opened this issue Jul 6, 2022 · 6 comments
Labels

Comments

@sjvc
Copy link

sjvc commented Jul 6, 2022

Hello, and thank you for such great library.

The comment for cancellationDate says: Returns nil if the purchase is not a renewable subscription

But the docs say that this field is designed for use with auto-renewable subscription, non-consumable and non-renewing subscription products. So, although your comment don't say it, does this field get filled when using non-consumable products? If yes, I suggest changing the comment so it gets more clear.

Thank you, and best regards.
Sergio.

@sjvc sjvc changed the title Purchase cancellationDate is not only for renewable suscribtions Purchase cancellationDate is not only for renewable subscribtions Jul 6, 2022
@tikhop
Copy link
Owner

tikhop commented Sep 14, 2022

Hi @sjvc,
Sorry, I missed your issue. I don't remember why I wrote that comment. Have you got a chance to check whether it's wrong on not? Thank you!

@sjvc
Copy link
Author

sjvc commented Sep 26, 2022

Hi.

I'm not sure about it. Didn't test. I was hoping you knew it :)

By reading Apple docs, it seems it should get filled...

@tikhop
Copy link
Owner

tikhop commented Sep 30, 2022

@sjvc I wish I knew. I, mostly, work with auto-renewable subscriptions, but I will try someday to make sure how it really work. Thanks again for bringing it up.

@revblaze
Copy link

@tikhop @sjvc Could this theoretically be used for detecting refunded non-consumable purchases? ie. Deactivating a specific feature set that was previously activated due to a successful in-app purchase.

@ripperhe
Copy link

@sjvc @tikhop @revblaze
Non-consumable purchases can use cancellationDate to verify if they are refunded. I have tested it.

@tikhop
Copy link
Owner

tikhop commented Jul 11, 2023

@ripperhe Thanks for verifying. I will update the comment and maybe we can also have a dedicated property whether the purchase is refunded or not.

Thanks again!

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

No branches or pull requests

4 participants