Skip to main content
Solved

Prepaid subscriptions return willRenew as true

  • February 22, 2024
  • 2 replies
  • 94 views

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.

This post has been closed for comments

2 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 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
  • February 26, 2024

Ok Sharif, thanks for your help.