- Home /
I want to upgrade/downgrade subscription in Google Play Store from Unity.
Firstly, I use this method in https://forum.unity.com/threads/google-play-subscription-upgrade-downgrade.528434/page-2
public void SubscriptionUpgradeDowngrade(string oldProductID, string newProductID) { IGooglePlayStoreExtensions m_GooglePlayStoreExtensions; m_GooglePlayStoreExtensions = extensions.GetExtension(); Product oldProduct = controller.products.WithID(oldProductID); Product newProduct = controller.products.WithID(newProductID); Action googlePlayCallback = new Action (m_GooglePlayStoreExtensions.UpgradeDowngradeSubscription); SubscriptionManager.UpdateSubscription(newProduct, oldProduct, "", null, googlePlayCallback); }
But, No upgrade/downgrade. There are still subscribed two items.
Secondly, I want to use this method in bottom of the link https://developer.android.com/google/play/billing/unity#update-subscription
But I can't call GooglePlayStoreProrationMode. In console, there is error. error CS0246: The type or namespace name 'GooglePlayStoreProrationMode' could not be found (are you missing a using directive or an assembly reference?)
How I can Use GooglePlayStoreProrationMode?
thx, your help.
Your answer
Follow this Question
Related Questions
Using Unity Pro Subscription With Unity 4 1 Answer
How do I cancel my Unity Pro subscription? 1 Answer
Unity IAP: subscription purchase failing on iOS 0 Answers
Does unity IAP pay subscriptions automatically? 0 Answers
Do I get to keep the free essentials packs after unsubscribing from Unity Pro? 1 Answer