Skip to main content
Answer

Best Practice - Handling Subscription Cancellations/Refunds/Reactivations

  • January 18, 2022
  • 1 reply
  • 289 views

Forum|alt.badge.img+4

Hello, I was wondering what the best practice is to handle an app with subscriptions when a user cancels the subscription, gets a refund and then possibly reactivates the subscription.  Are webhooks the best practice for this?

 

Best answer by ryan

Checking the PurchaserInfo object in the SDK to see if an entitlement is active or not is typically the easiest approach and automatically handles all of these cases so you don’t need to think about it.

 

Something like:

if purchaserInfo.entitlements["your_entitlement_id"]?.isActive == true {
// Unlock that great "pro" content
}

 

This post has been closed for comments

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Answer
  • January 19, 2022

Checking the PurchaserInfo object in the SDK to see if an entitlement is active or not is typically the easiest approach and automatically handles all of these cases so you don’t need to think about it.

 

Something like:

if purchaserInfo.entitlements["your_entitlement_id"]?.isActive == true {
// Unlock that great "pro" content
}