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:
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.
With this way, I believe can validate auto-renewals too.
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.
@Andy Do you have any plans to add a full support of auto-renewable subscriptions in the nearest future?
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?