I'm testing my subscription right now.
But isCancelled() is return Result.True when I canclled test subscribe in Google Account.
IEnumerator SubsCheckCoroutine()
{
while (true)
{
if (VipType == ESubsType.None)
{
yield return new WaitForSeconds(1.0f);
}
else
{
var product = Purchaser.GetInstance.GetSubscriptionProduct(_vipType);
if (product != null)
{
SubscriptionManager subsManager = new SubscriptionManager(product, null);
if (subsManager.getSubscriptionInfo().isCancelled() == Result.True)
{
Debug.Log("Cancelled.");
}
else
{
Debug.Log("Not Cancelled.");
}
}
yield return new WaitForSeconds(1.0f);
}
}
}
↧