|
1 yıl önce | |
---|---|---|
.. | ||
.sample.json | 1 yıl önce | |
README.md | 1 yıl önce | |
README.md.meta | 1 yıl önce | |
SubscriptionGroup.cs | 1 yıl önce | |
SubscriptionGroup.cs.meta | 1 yıl önce | |
UpgradeDowngradeSubscription.cs | 1 yıl önce | |
UpgradeDowngradeSubscription.cs.meta | 1 yıl önce | |
UpgradeDowngradeSubscription.unity | 1 yıl önce | |
UpgradeDowngradeSubscription.unity.meta | 1 yıl önce | |
UserWarningAppleAppStore.cs | 1 yıl önce | |
UserWarningAppleAppStore.cs.meta | 1 yıl önce |
This sample showcases how to use Unity IAP 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 may be given the opportunity to pay a different amount of money to upgrade or downgrade their subscription’s tier to a different service level.
On Apple, the user purchases a subscription, and upgrades or downgrades by purchasing a second, or by visiting the Manage Subscriptions sheet.
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.iOS
.NOTE: Testing may be complicated and not convincing when using the Apple Sandbox app store. Only certain dialogs may appear, and there may be no “upgrade / downgrade” UI presented. Also the “Manage Subscriptions” Apple iOS feature may not work when testing with the Sandbox.
See Apple’s documentation on the topic for more information.