Skip to main content
Solved

How can check that user has grace period?

  • Sep 22, 2021 5:31 PM UTC
  • 5 replies
  • 647 views

Forum|alt.badge.img+2

Hi, 

there is information in the documentation

Also, if you are user of RevenueCat, grace periods for Apple and Google are automatically detected and handled by our receipt server and SDK.

 

How can I check that user has grace period in this time? I want to show alert for him.

Thanks

Best answer by tina

Hi @Dmitriy!

From the SDK, if an entitlement is still active, and billingIssuesDetectedAt is not null, it can be assumed the user is in a grace period.

View original
This post has been closed for comments

5 replies

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • Answer
  • Sep 22, 2021 6:01 PM UTC

Hi @Dmitriy!

From the SDK, if an entitlement is still active, and billingIssuesDetectedAt is not null, it can be assumed the user is in a grace period.


Forum|alt.badge.img+2
  • Author
  • New Member
  • Sep 22, 2021 6:15 PM UTC

Is there way to check it in sandbox?


Forum|alt.badge.img+2
  • Author
  • New Member
  • Sep 22, 2021 6:17 PM UTC

Does user in grace period have Entitlement status “Is Active”?


tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • Sep 22, 2021 7:30 PM UTC

Hey,

You will be able to check in sandbox if the user enters a grace period, note that I don’t believe you can manually trigger a grace period in sandbox. The user in a grace period will have entitlement status as “is active” since app stores still consider the subscription as active while they attempt to collect payment (assuming grace period is turned on).


Forum|alt.badge.img+2
  • Author
  • New Member
  • Sep 23, 2021 4:45 PM UTC

Hey,

You will be able to check in sandbox if the user enters a grace period, note that I don’t believe you can manually trigger a grace period in sandbox. The user in a grace period will have entitlement status as “is active” since app stores still consider the subscription as active while they attempt to collect payment (assuming grace period is turned on).

Ok, thank you for your answer.