question

plourdegui avatar image
plourdegui asked

RealCurrencyPrices and VirtualCurrencyPrices are null

With PlayFab's Unity SDK, CatalogItem's RealCurrencyPrices and VirtualCurrencyPrices from bundles are always null even though we set a valid Price as "RM".

See the screenshot below, we set a "RM" price of 999. Yet, from the Unity SDK, both RealCurrencyPrices and VirtualCurrencyPrices are null.

Is this a bug with PlayFab or a fundamental misunderstanding from us?

Thanks

bundle.png (62.5 KiB)
10 |1200

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

1 Answer

·
brendan avatar image
brendan answered

Well first, Real Currency Prices is unrelated to the pricing you set in the Game Manager. It is a distinct field that can only be set via the API call. It is also unused at the moment (https://community.playfab.com/questions/20304/using-realcurrencyprices-in-the-steam-non-receipt.html).

For the RM issue, can you please specify the Title ID, so that we can have a look?

15 comments
10 |1200

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

plourdegui avatar image plourdegui commented ·

Thanks Brendan.

For the RM issue, here is our Title ID: 686C

0 Likes 0 ·
brendan avatar image brendan plourdegui commented ·

Thanks. Can you specify the API call you're making and the parameters? When I query your catalog, the item has its RM price, no problem:

            {
                "ItemId": "keep_them_coming",
                "ItemClass": "Special",
                "CatalogVersion": "Default",
                "VirtualCurrencyPrices": {
                    "RM": 999
                },
                "Tags": [],
                "CustomData": "{\"Flags\":\"[\\\"AdFree\\\"]\"}",
                "Consumable": {
                    "UsageCount": 1,
                    "UsagePeriod": 3
                },
                "Bundle": {
                    "BundledItems": [
                        "L12",
                        "L13",
                        "BundlePurchaseToken"
                    ],
                    "BundledResultTables": []
                },
                "CanBecomeCharacter": false,
                "IsStackable": false,
                "IsTradable": false,
                "IsLimitedEdition": false,
                "InitialLimitedEditionCount": 1
            },

0 Likes 0 ·
plourdegui avatar image plourdegui brendan commented ·
PlayFabClientAPI.GetCatalogItems
(
    new GetCatalogItemsRequest()
    {
        CatalogVersion = null,        
    }, 
    resultCallback: result =>
    {
        Debug.Log("Catalog Items loaded");
        GetCatalogItemsResult = result;
        p.Resolve();
    }, 
    errorCallback: err => p.Reject(err.ToException())
);
0 Likes 0 ·
Show more comments
plourdegui avatar image plourdegui commented ·

@Brendan I don't know if this related, but granting bundles through the Game Manager fails with an unknown exception. Title ID: 686C

0 Likes 0 ·
brendan avatar image brendan plourdegui commented ·

Hm. Again, not sure how you're getting this. I just granted that item to that player in the Game Manager in your title with no issue. Are you using the select item option to get the item ID populated, or are you just typing it in?

0 Likes 0 ·
plourdegui avatar image plourdegui brendan commented ·

I managed to get around this "unknown exception" by removing all the occurrences of the "Limited Edition" checkbox that we had on our bundles and items.

0 Likes 0 ·
Show more comments
removed avatar image removed commented ·

@Brendan just started getting this error too.

0 Likes 0 ·
brendan avatar image brendan removed commented ·

And does removing the Limited Edition flag from the items fix the issue? Do you have repro steps that we can try in a test title?

0 Likes 0 ·
removed avatar image removed brendan commented ·

I wasn't using that feature.
I also noticed each catalog item returned was duplicated (so in essence, GetCatalogItems returned each item in my catalog twice).

The problem went away after stopping to call the function twice simultenously.

0 Likes 0 ·
Show more comments

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.