question

Miroslav Krenek avatar image
Miroslav Krenek asked

Consume Xbox Entitlements - should we use Developer-managed consumables or Store-managed consumables?

Dear PlayFab support,

we want to use Consume Xbox Entitlements to "sync" Xbox Store with PlayFab after player purchases consumable item (premium currency bundle) on Xbox Store (in game, calling XStoreShowPurchaseUIAsync). According to docs, Consume Xbox Entitlements should "consume all available items in Xbox and grant them to the player's PlayFab inventory".

My question is:

1) Does this work for Store-managed consumables or Developer-managed consumables? Or both?

2) Do we have to manually report consumable fulfillment (by calling XStoreReportConsumableFulfillmentAsync) or is this handled by PlayFab?

Thank you!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image
Sarah Zhang answered

Please refer to the answer of this thread -- Best Practice for PS4/XB1 Entitlement Setup for RM Transactions - Playfab Community.

>> 1) Does this work for Store-managed consumables or Developer-managed consumables? Or both?

Do you mean the stores in Xbox platform? If so, it should be supported. And as the above thread said, the item Ids in PlayFab need to align with what you set in the platform store. If the items are different across stores, you need to set multiple items in PlayFab.

>> 2) Do we have to manually report consumable fulfillment (by calling XStoreReportConsumableFulfillmentAsync) or is this handled by PlayFab?

As the above thread said, you needn’t pass the receipt, PlayFab will query the use’s entitlements.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Miroslav Krenek avatar image
Miroslav Krenek answered

Thank you.

We are using Developer-managed consumables, but the ConsumeXboxEntitlements doesn't work - it finishes with success, but the Items are null.

I purchased some consumables and I can see that I have the entitlement for them (using XStoreQueryEntitledProductsAsync).

ConsumeXboxEntitlementsRequest has correct Catalog version and Xbox token.

The items are set-up on PlayFab server with correct ID (Xbox Store ID is the same as PlayFab Item ID).

We are connected to the right PlayFab server - we can see the items in the in-game store.

Please, do you have some idea what might be the problem?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

As the title's Xbox Livs Add-on page(https://developer.playfab.com/en-US/[YourTitleId]/addons/XboxLive) mentioned, for each in-app purchase item, you'll need to create an item in your PlayFab title catalog with an Item ID matching the ID you see in Partner Center for the in-app purchase item. We are not sure if the Xbox Store ID you said is the in-app purchase item Id. Could you please check it? For more advanced questions about Xbox IAP, we would suggest you navigate to the Xbox developer forum for the help.

0 Likes 0 ·
Miroslav Krenek avatar image
Miroslav Krenek answered

The ID naming is quite confusing - for PlayFab Item ID we use the Store ID (12-character alpha-numeric string) - see attached picture.

One thing that is worth mentioning (but might not be related) is that we also have problem with "manual" consuming the item using XStoreReportConsumableFulfillmentAsync - it ends with success and shows remaining quantity of 0, but the item is not consumed, because we still have entitlement for that item and it is not possible to purchase it again.


capture.png (104.9 KiB)
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

Thanks for the clarification, the Xbox support would handle the questions about PlayFab integration. Please navigate to thier forum for support -- https://forums.xboxlive.com/.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.