diff --git a/VirtueSky/Iap/Runtime/IapManager.cs b/VirtueSky/Iap/Runtime/IapManager.cs index 02d68cd..f5e89e9 100644 --- a/VirtueSky/Iap/Runtime/IapManager.cs +++ b/VirtueSky/Iap/Runtime/IapManager.cs @@ -92,8 +92,7 @@ internal Product GetProduct(IapDataVariable product) internal SubscriptionInfo GetSubscriptionInfo(IapDataVariable product) { - if (_controller == null) return null; - if (!IsPurchasedProduct(product)) return null; + if (_controller == null || product.productType != ProductType.Subscription || !_controller.products.WithID(product.id).hasReceipt) return null; var subscriptionManager = new SubscriptionManager(GetProduct(product), null); var subscriptionInfo = subscriptionManager.getSubscriptionInfo(); return subscriptionInfo;