Skip to main content
Solved

Prepaid subscriptions return willRenew as true


Forum|alt.badge.img+1

Hi there,

 

I just wanted to check if I’m missing something obvious here… I am adding support for Google prepaid subscriptions to my app. I am trying to find a way of knowing if the entitlement the user has is a prepaid (non-renewing) subscription. The docs suggest that we should be using Entitlements and not ActiveSubscriptions of CustomerInfo. However the only clue I can find is that checking the active subscription product identifier will contain whether the active entitlement is prepaid or not, it doesn’t seem to be included in Entitlements anywhere. I would have expected that willRenew would be false, as the subscription will indeed not renew, but it seems to return true.

 

Am I missing something or is this a mistake?

 

Many thanks!

Best answer by sharif

Hello @varyamereon,

In this case you probably need to look at the subscriptions object and search for the prepaid base plan. The entitlements object won’t contain any indication that a product is prepaid.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 518 replies
  • Answer
  • February 26, 2024

Hello @varyamereon,

In this case you probably need to look at the subscriptions object and search for the prepaid base plan. The entitlements object won’t contain any indication that a product is prepaid.


Forum|alt.badge.img+1
  • Author
  • New Member
  • 1 reply
  • February 26, 2024

Ok Sharif, thanks for your help.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings