I’m trying to test the Restore Purchase functionality locally with a sandbox user for my macOS desktop app but nothing seems to happen. Here is my code:
Purchases.shared.restorePurchases { purchaserInfo, error in
if purchaserInfo?.entitlements.all["Premium"]?.isActive == true {
NotificationCenter.default.post(name: NSNotification.Name("SubscriptionActive"), object: nil)
closeAction()
}
isLoading = false
}