Hi! I am trying to integrate steam in app purchases into my game, but i get
PlayFabError(ServiceUnavailable, 500 Internal Server Error , 400 BadRequest)
What am i doing wrong?
1.Login to playfab via steam
2. start purchase
public void TesztVasarol(){ // Steamworks. ItemPurchaseRequest i = new ItemPurchaseRequest(); i.ItemId = "g11"; i.Quantity = 1; i.UpgradeFromItems = new List<string>(); i.UpgradeFromItems.Add("");
StartPurchaseRequest rq = new StartPurchaseRequest(); // rq.StoreId="TesztStore"; rq.Items = new List<ItemPurchaseRequest>(); rq.Items.Add(i); PlayFabClientAPI.StartPurchase(rq,startPurchaseCallback,ErrorCallback); // TesztItemVasarol(); }
3. error
Please help, thanks
Please remove the UpgradeFromItems parameter - it actually was added for a specific use case (https://community.playfab.com/questions/7221/how-to-use-upgradefromitems-on-startpurchase.html), so adding an empty entry to that array is likely the issue, here.
1 Person is following this question.