Skip to main content
Solved

Best Practice - Handling Subscription Cancellations/Refunds/Reactivations

  • 18 January 2022
  • 1 reply
  • 216 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              
 }

 

View original
Did this post help you find an answer to your question?

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 391 replies
  • 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              
 }

 


Reply


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