|
hace 1 año | |
---|---|---|
.. | ||
.sample.json | hace 1 año | |
README.md | hace 1 año | |
README.md.meta | hace 1 año | |
SubscriptionGroup.cs | hace 1 año | |
SubscriptionGroup.cs.meta | hace 1 año | |
UpgradeDowngradeSubscription.cs | hace 1 año | |
UpgradeDowngradeSubscription.cs.meta | hace 1 año | |
UpgradeDowngradeSubscription.unity | hace 1 año | |
UpgradeDowngradeSubscription.unity.meta | hace 1 año | |
UserWarningGooglePlayStore.cs | hace 1 año | |
UserWarningGooglePlayStore.cs.meta | hace 1 año |
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.