|
1 jaar geleden | |
---|---|---|
.. | ||
.sample.json | 1 jaar geleden | |
README.md | 1 jaar geleden | |
README.md.meta | 1 jaar geleden | |
SubscriptionGroup.cs | 1 jaar geleden | |
SubscriptionGroup.cs.meta | 1 jaar geleden | |
UpgradeDowngradeSubscription.cs | 1 jaar geleden | |
UpgradeDowngradeSubscription.cs.meta | 1 jaar geleden | |
UpgradeDowngradeSubscription.unity | 1 jaar geleden | |
UpgradeDowngradeSubscription.unity.meta | 1 jaar geleden | |
UserWarningGooglePlayStore.cs | 1 jaar geleden | |
UserWarningGooglePlayStore.cs.meta | 1 jaar geleden |
This sample showcases how to use the Google Play Store extensions to upgrade and downgrade subscriptions. This allows players to change their subscription, and pay a different amount of money for a different level of service.
You can offer users different subscription tiers, such as a base tier and a premium tier or monthly and yearly subscriptions. A user that is already subscribed should be able to pay a different amount of money to upgrade or downgrade his subscription’s tier.
InAppPurchasing game object > Upgrade Downgrade Subscription script > Normal Subscription Id field / Vip Subscription Id field
or change the normalSubscriptionId
and vipSubscriptionId
fields in the UpgradeDowngradeSubscription.cs
script.Android
and make sure the GooglePlayStore
is selected*.Services > In-App Purchasing > Configure
and changing the Current Targeted Store
field.When upgrading or downgrading a subscription, you can set the proration mode, or how the change affects your subscribers.
The following table lists available proration modes:
See Google’s documentation on the topic for more information.
Certain proration modes are recommended in certain scenarios. See Google’s recommended proration modes for more information.