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 Dan Hughes · Aug 12, 2019 at 12:04 PM · apisIn-Game Economy

Purchasing multiple virtual currency bundles does not work.

Hi,

Purchasing multiple virtual currency bundles in one transaction does not appear to work.


I have defined a catalog bundle with bundle contents set as one item:

  • Virtual currency (Sheckles) with a quantity of X.

This catalog bundle is purchasable via one of the stores for a (test amount) of zero Sheckles.

I can purchase one of these bundles successfully and see the virtual currency increase. These steps appear to happen correctly:

  • Complete the transaction using the single-step PurchaseItem API from the client code.
  • The bundle is added to the user inventory on PlayFab.
  • Virtual currency is automatically unpacked into the user's virtual currency, I can see this updated on PlayFab.
  • The bundle is destroyed via the consumable mechanism.

When attempting to purchase multiple of these bundles using the three-step API the virtual currency amount is not updated correctly.

  • StartPurchase
  • PayForPurchase
  • ConfirmPurchase

Following through in the debugger:

  • I can see that each of the three purchase steps appear to successfully complete with no errors or warnings.

On PlayFab:

  • I can see all of the bundles appear temporarily in the user inventory before being destroyed automatically via the bundle consumption mechanism.
  • Only one of the amounts of virtual currency is ever updated for the user.

So for example, if the bundle contained 1000 x Sheckles and I bought 5 of those bundles, my virtual currency amount would only increase by 1000 Sheckles instead of 5000 Sheckles.

Please let me know if this is an error in our code or setup, or if this is a limitation of PlayFab.

Thanks for your help!

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 Citrus Yan · Aug 13, 2019 at 03:13 AM

Hi Dan, it seems that you are getting support from other channel, we will provide support for you in that channel, thanks.

Comment
Dan Hughes

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 Dan Hughes · Aug 19, 2019 at 12:03 PM 0
Share

Thanks @Citrus Yan.

For anyone else interested here is the response I recieved:

This issue is a bug we are currently working, unfortunately there is no work around for this issue. At this time multiple VC bundles must be bought with separate purchase calls using the StartPurchase/PayForPurchase/ConfirmPurchase API’s

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Is there a way to get Limited Edition Count Available from server or client API? 1 Answer

    Prize tables are not rewarding instantly after reset 2 Answers

    Purchase Item - Potentioal Bug? 1 Answer

    Apple (iOS) receipt validation in Unity IAP 1 Answer

    Add running count every time any player presses the same button. Like a limited store item or something where only 10 users could purchase one before it's sold out. 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