I am successfully calling GetPlayerCombinedInfo, but it is not returning InfoResultPayload.UserVirtualCurrency.
Below is our code:
public void GetPlayerCombinedInfo() { GetPlayerCombinedInfoRequest request = new GetPlayerCombinedInfoRequest(){ PlayFabId = this.PlayFabId, InfoRequestParameters = new GetPlayerCombinedInfoRequestParams(){ GetUserAccountInfo = true, GetUserInventory = true, GetUserVirtualCurrency = true, GetUserData = true, GetUserReadOnlyData = true, GetCharacterInventories = true, GetTitleData = true, GetPlayerStatistics = true } }; PlayFabClientAPI.GetPlayerCombinedInfo (request, (result) => { if (result.InfoResultPayload == null) { Debug.Log("No result!"); } else if (result.InfoResultPayload.UserVirtualCurrency == null) { Debug.Log ("UserVirtualCurrency missing for PlayFabID: " + result.InfoResultPayload.AccountInfo.PlayFabId); } else { foreach (var item in result.InfoResultPayload.UserVirtualCurrency) { Debug.Log(" " + item.Key + " =================== " + item.Value); } } }, (error) => { Debug.Log("Got error retrieving user data:"); Debug.Log(error.ErrorMessage); }, null); }
Attached is the dashboard showing that the user has virtual currency and also attached is the debug output showing the correct PlayFabID is returned.
What are we missing?
Thanks,