tikhop/TPInAppReceipt

Purchase cancellationDate is not only for renewable subscribtions

sjvc opened this issue · 6 comments

sjvc commented

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.

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 commented

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...

@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.

@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.

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

tikhop commented

@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!