Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by vertigodogukan · Oct 13, 2018 at 05:57 PM · unity3dIn-Game Economypricing

Subscription and Auto-Renewal

Hello there, we are trying to implement Subscription into our game. We already implemented in-app purchases with PlayFab validation, but PlayFab's validation requires an item to exist so the it can cross-check the id's of the purchase and the item.

I'm looking for the best and most secure way to implement this. Now that I've read couple of forum messages that currently, PlayFab is working on Subscription feature which is only available to Enterprise and Pro users(since it is in beta I think?). Is this feature close to it's release so maybe we can use it? Or should we somehow implement subscription our own way?

If we were to implement this with our own way, what is the best possible approach here? Here are the options that comes to my mind:

  • Make an item which is just a blank item(in order to make validation) and if the validation is success, I will keep the subscription's expire date in player data and check this data on some occasions(menu changes, or on app start etc.). In the case of auto-renewal, I will control the subscription's state(which I can do with Unity's IAP system) on some occasions(again like in menu changes, or on app start etc.) and decide to keep VIP benefits of the player or not.
  • The other option was to use a limited time item and check the item exists but I decided this option isn't good since there is a free-trial option in Google Play which we are using, and I need to remove the item in case if the player cancels the subscription after free-trial period.

The only thing that concerns me is a way to validate auto-renewals. In the case that I've implemented the first option, I would know if the player's subscription is over, in this case, I would receive the current subscription info of the player with Unity's IAP(check this in case anyone needs) and detect if the player's subscription is renewed, and then re-apply the whole process again.

Please note that we are using Unity 2018.2.12 - UnityIAP 1.21 and developing the game only on Android.

Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vertigodogukan · Oct 13, 2018 at 03:06 PM 0
Share

With this way, I believe can validate auto-renewals too.

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Andy · Oct 15, 2018 at 09:33 PM

Until we have subscript ion support available for everyone, the method you've outlined in your first bullet point should cover your needs. You would definitely want to handle auto-renewals, as that's one of the major benefits of subscriptions. You'd normally do this by inspecting the receipt, looking at the expiration date, and updating the expiration you're tracking in player data. It looks like the Unity IAP system does some of that for you, which is great.

As to how regularly to check the subscription data, I normally see it done on player login, but you can do it more frequently (maybe even through a UI refresh button) if it's important for your players.

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image litebox · Sep 21, 2020 at 07:34 AM 0
Share

@Andy Do you have any plans to add a full support of auto-renewable subscriptions in the nearest future?

avatar image

Answer by Darius Vu · Aug 11, 2020 at 02:31 AM

@andymc Do you have any update for this feature? Now I am interested in developing the Subscription feature for my game? or if not yet, could you tell us the plan to publish this feature?

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Noam Sapir · Sep 21, 2020 at 10:19 AM 0
Share

+1 Is there a way to add subscriptions?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Store with random items 1 Answer

    iOS sandbox receipt validation is failing. 1 Answer

    Set up Real Money payment for multiple Platforms,How can we include Real Money & payment for all platforms? 1 Answer

    {"PlayFabId":["must be a hex-encoded number"]} on Giv 1 Answer

    Is there a Unity Sample available for the new Multiplayer Preview? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges