IsCancelled

Description

Check if a product is canceled or not.

A canceled subscription means the Product is currently subscribed, but will not renew on the next billing date.

Non-renewable Products in the Apple store return a Result.Unsupported value. Auto-renewable Products in the Apple store and subscription products in the Google Play store return a Result.True or Result.False value.

Declaration

public static Result IsCancelled(ShopProductNames product)

Parameters

NameDescription

product

An enum member is generated from the Settings Window.

Requires using Gley.EasyIAP;

Return

Result - indicate whether this Product has been canceled.

Example

Test.cs
using Gley.EasyIAP;
using UnityEngine.Purchasing;

public class Test : MonoBehaviour
{
    public void GetValue()
    {
        if (Gley.EasyIAP.API.IsCancelled(ShopProductNames.YourSubscription) == Result.True)
        {
            //make a special offer to the user
        }
    }
}

Last updated