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 /
  • Feature Requests /
avatar image

Ozan Yilmaz suggested an idea · Feb 05, 2021 at 09:31 AM · CloudScriptapis

Validate Receipt on Cloudscript

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.

thub.nodes.view.add-new-comment
Ozan Yilmaz

People who like this

1 Show 0
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

No comments

· Add your reply

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    1 Person is following this .

    avatar image

    Related Ideas

    Playstream events should show input parameters/arguments

    Add ability to configure CloudScript repository

    allow PurchaseItem from server api OR allow GetStoreItems from server api OR add parameter to client.PurchaseItem to copy customdata

    server.EvaluateRandomResultTableRequest() to accept multiple TableIds.

    Enhance results from GrantItemsToUser().

    Client Jobs (crons)

    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

    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