Ozan Yilmaz suggested an idea · Feb 05, 2021 at 09:31 AM · CloudScriptapis
Hello everyone,
I found this question on the website and according to it, the subscriptions of Google Play uses same receipt to renew the subscriptions.
https://community.playfab.com/questions/41259/how-do-i-update-a-users-subscription.html
I guess, this means that when a subscription of a player renews itself, it doesn't generate a new receipt ID. I just need to check the old one to see if it's valid. If this is correct, accessing validate APIs on Cloudscript can make the auto-renew subscriptions process autonomous on the server side.
For example;
I create an empty item that is consumable by time (1 month), and I also save receipt ID of the subscription on the player's internal data.
After a month, the item disappears on the player's inventory and it will trigger player_consumed_item event. Then I check the player's receipt ID on Cloudscript to see if the player's subscription is still active.
We would love to know what you need. Submit your ideas and upvote others to help us prioritize.
Playstream events should show input parameters/arguments
Add ability to configure CloudScript repository
server.EvaluateRandomResultTableRequest() to accept multiple TableIds.
Enhance results from GrantItemsToUser().
Return Actual Responses / Error from Azure Function CloudScript
Return all ResultTables with GetRandomResultTables().
Update the Server API to allow UpdateUserTitleDisplayName
Improve GrantItemsToUsers to support item grants from multiple catalogs in a single call