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 /
  • General Discussion /
avatar image
Question by Hibnu Hishath · May 31, 2020 at 02:31 PM · apisIn-Game EconomyPlayer InventoryPartner Add-onssupport

Player purchased an item bundle but the contents weren't given to the player

In a project that I'm working on I was doing a test purchase for $1 using PayPal. It was a bundle that should grant players 100 virtual currency and the bundle consumes after 3 seconds.

According to the test-player event history, the purchase was made at 5:45, and in the purchases tab, the payment was confirmed at 5:45. Then I looked at the inventory where I saw that a bundle was created at 5:45 and expired at 5:45 (assuming its the 3 seconds).

The issue is that the contents of the bundle (100 virtual currency) weren't granted to the player. The event history doesn't show that a bundle was added, nor does it show a change in virtual currency.

Later at 7:00, I tried to grant the player this bundle using the game manager. This bundle was registered in the event history as being added, and a change in virtual currency by 100 was indicated. I later pressed revoke on this bundle to test/understand what it did.

Another important detail is that, as of writing this post, I wasn't charged any money from my personal Paypal account nor do I see any amount in my business Paypal account. If that's the case why the item wasn't added to the inventory, why does a successful purchase is shown at 5:45 in the purchase tab?

I don't understand this behavior and any form of help is really appreciated.

Screenshots to help:

Purchase Tab

Event History

purchase.png (37.1 kB)
event-history.png (207.9 kB)
Comment

People who like this

0 Show 1
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 Hibnu Hishath · May 31, 2020 at 02:34 PM 0
Share

Inventory

Item bundle in question

inventory.png (84.6 kB)
item-bundle.png (121.6 kB)

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Jun 01, 2020 at 02:39 AM

Because the player didn't actually pay for the purchase. If they had, there would be a player_realmoney_purchcase event (https://docs.microsoft.com/en-us/gaming/playfab/api-references/events/player-realmoney-purchase). The non-receipt purchase flow has three API calls - StartPurchase, PayForPurchase, and ConfirmPurchase (https://docs.microsoft.com/en-us/gaming/playfab/features/commerce/economy/non-receipt-payment-processing). The player_paid_for_purchase event can be somewhat confusing, since it is fired by the PayForPurchase step in the flow. If you review the non-receipt payment processing guide above, you'll see that depending on the payment processor, the actual payment may or may not be made at that point. In the case of PayPal, all we're doing at that point is completing the setup of the payment in their service so that you can send the player to the page to finalize their purchase. Only once they've done so will ConfirmPurchase result in the player_realmoney_purchase event - which is the only one you should rely upon to decide whether a player has paid for an item (if it's a purchase that requires a real money payment).

Comment
Hibnu Hishath

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 Hibnu Hishath · Jun 01, 2020 at 03:22 AM 0
Share

Hey Brendan, just a quick follow up / making things clear. What does "succeeded" in the purchase tab mean? Does it just mean that the transaction loop was completed, and it doesn't indicate whether the real-money purchase was successful or not?

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How to integrate real money payment using Playfab? 1 Answer

    How to print certain items from the inventory i.e items of particular class or tags using unity from server side? Can someone paste the code? 1 Answer

    Sending emails not working 3 Answers

    Limiting the Number of Specific Items in the Inventory?,Limit Number of One Type of Item in Inventory? 1 Answer

    Catalog setup for A/B testing IAP on mobile 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