Skip to main content

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?

 

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.entitlementsn"your_entitlement_id"]?.isActive == true {
// Unlock that great "pro" content
}

 


Reply