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

Víctor suggested an idea · Jan 29, 2020 at 06:04 PM · CloudScriptapis

Add PurchaseItem to the Server API

My problem: I want to make some checks before letting the user purchase an item from a Store.

For instance, having an item with limit dates (purchaseable only between a startDate and an endDate), or having a limit number of purchases per user for an item.

To be able to do this, I'd need to make those checks through a CloudScript function and, once validated, call PurchaseItem from there.

Unfortunately, PlayFab's Server API doesn't allow to call PurchaseItem from CloudScript, and I think it would be a very helpful feature in many different situations as those described above.

Also, if anyone has a suggestion for a suitable workaround it would be greatly appreciated.

Thank you!

thub.nodes.view.add-new-comment
Víctor
Kim Strasser
Ather Rizvi
Soloman Northrop
Hareesh Mathiyalagan

People who like this

5 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

    No one has followed this yet.

    Related Ideas

    Update the Server API to allow UpdateUserTitleDisplayName

    Improve GrantItemsToUsers to support item grants from multiple catalogs in a single call

    Friend Request with Accept/Decline option

    API methods/CloudScript functions to interact with multiple Shared Groups at once

    Remove old Cloud Script revisions using Admin API

    Add VC Recharge Rate to client and server APIs

    Validate Receipt on Cloudscript

    Playstream events should show input parameters/arguments

    Cloud Script environment variables and Admin API to update them

    Define Automation Rules programmatically

    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