Skip to content

Commit

Permalink
Update IapManager.cs
Browse files Browse the repository at this point in the history
Co-Authored-By: VirtueSky <126542083+VirtueSky@users.noreply.github.com>
  • Loading branch information
DucNV2000 and VirtueSky committed Dec 13, 2024
1 parent bd221c9 commit 2ebf21e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions VirtueSky/Iap/Runtime/IapManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ebf21e

Please sign in to comment.