I have a problem with Ue4, I'm developing payment from store with real Money, what should I put in Array in start purchase? It always gives me error, is it possible to see an example or solution ? thank you and sorry for my english
I have a problem with Ue4, I'm developing payment from store with real Money, what should I put in Array in start purchase? It always gives me error, is it possible to see an example or solution ? thank you and sorry for my english
If you hover the mouse on the node, you may find that the type of variables that you are handling with is PlayFab JSON object, even the array is an array of PlayFab JSON object. The question is how to construct a PlayFab JSON object, which is provided in our SDK.You are able to craft all of them in the same Graph, but my suggestion is to create a function for certain JSON object.
For example, in the request of UpdatePlayerStatistics, a list of StatisticUpdate[] is required. Meanwhile in UE4, it should be an array of StatisticUpdate Json Object and according to the API documentation:StatisticUpdate contains 2 required properties, which are
StatisticName and Value. Hence you can create a PlayFab JSON object Variable and write a set function:
Then in the Graph you will be able to input required Statistics and Value:
I also craft a function for ItemPurchaseRequest that you may refer to:
In the Graph:
The most important thing is to check the API documentation, if there is structured property, like lists, you need to use this method.
2 People are following this question.