Hello everyone,
The questions are a bit unrelated to PlayFab, but I'm new to IAP, and I'm trying to make an automatic system to handle some situations.
The game will be released on Play Store.
- Do subscription receipts change when they are renewed?
When a user's subscription renews itself, does the receipt ID change (a new receipt is created) or does the ID stay same but the information on the receipt changes (e.g expiration date)? I think, to be able to renew a subscription, I need to validate a receipt again by calling ValidateGooglePlayPurchase API. If the receipt ID stays same, does PlayFab accept the same receipt ID?
- How can I save the expiration dates on PlayFab?
I guess, when a receipt is validated on PlayFab, player_receipt_validation event is called. If I setup a rule on PlayFab, can I get the receipt's expiration date or the receipt's time span on Cloudscript? If I can get the time span, it will be easy for me to handle the expiration dates. (current server time + time span). If I can get the expiration date, is the date in UTC? If the date isn't in UTC, how can I convert it to UTC?
- Should I take back the subscription features immediately when a user cancels their subscription?
I don't know the behavior of Play Store in terms of cancellations. Does the subscription is canceled immediately when a user cancels their subscription? For example; if a user purchases a monthly subscription and use it for 1 week and cancel it, is the full price of the subscription reducted from the developer's payment or does the subscription stay until its expiration date and doesn't renew itself when it's expired? If the former happens, I should take back the subscription features immediately. If the latter happens, I don't need any extra action to do something since I already save the expiration dates on the players' read only data. (To be able to save the expiration dates, I need to make a system in the second question)