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 /
  • API and SDK Questions /
avatar image
Question by JJNCreator · May 18, 2017 at 04:54 PM · game managerIn-Game Economy

Can a catalog item be used as both a VC item and an IAP?

Hi PlayFab Community,

I'm making this game where a guest account can be created. One of the things guests accounts will have is the ability to buy in-game cars with real money. If they upgrade to a full account, they can use virtual currency instead of real money to buy the cars.

On to my question. My catalog items (which act as cars in the game) currently have a virtual currency price, but I also want them to be available as In-App Purchases (for both iOS and Android). The way I could do that is to add an RM price to the catalog items. Will this work when I call the Validate Receipt functions?

Thank you

Comment

People who like this

0 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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · May 18, 2017 at 08:04 PM

In most cases when you use receipt validation, you'll be sending the currency code and price paid as part of the call. In any case where a price is not passed in, we use the price specified in the catalog (RM for the USD price - so 99 RM is $0.99 USD).

But yes, each price in the catalog or store definition is distinct. So an item set up with two different prices - one in VC and one in RM, could be purchased with either.

However, please note that setting a price in a catalog or store makes that price available for purchase of the item by any player, if the correct call is made (and, of course, the player either is actually paying the money in question, whether real or virtual currency). So your best practice here would be to not give the non-full account players any way to get the virtual currency in question. If you want to give the player VC that they can see but not use, as an incentive to get them to upgrade, use a separate virtual currency for the VC purchase prices of the items, and when the player upgrades, use a Cloud Script to transfer that balance over to the VC used to define the purchase prices.

Comment
JJNCreator

People who like this

1 Show 1 · Share
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
avatar image JJNCreator · May 18, 2017 at 08:27 PM 0
Share

I have an idea of how I can make this work. If I have any more questions, I'll come back to this post. Thanks for the help!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    1 Person is following this question.

    avatar image

    Related Questions

    IAP Guide Parity 1 Answer

    Start multiplayer server from cloud script 3 Answers

    How would I handle a virtual currency online and offline?,Some questions about integration with PlayFab. 1 Answer

    Purchase Item - Potentioal Bug? 1 Answer

    Reward certain amount of virtual currency to the user after game 1 Answer

    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