question

vertigodogukan avatar image
vertigodogukan asked

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.

unity3dIn-Game Economypricing
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vertigodogukan avatar image vertigodogukan commented ·

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

0 Likes 0 ·
Andy avatar image
Andy answered

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.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

litebox avatar image litebox commented ·

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

0 Likes 0 ·
Darius Vu avatar image
Darius Vu answered

@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?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Noam Sapir avatar image Noam Sapir commented ·

+1 Is there a way to add subscriptions?

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.