I've tried following the non - receipt tutorial but i keep getting.
void Buy() { PlayFabClientAPI.StartPurchase(new StartPurchaseRequest()
{
CatalogVersion = "IAP1_0",
Items = new List<ItemPurchaseRequest>()
{
new ItemPurchaseRequest()
{
ItemId = "BigBagOfGold",
Quantity = 1,
Annotation = "Purchased via in-game store" }
}
}, result =>
{
// Handle success
}, error =>
{
// Handle error
});
}
error CS1955: Non-invocable member 'PlayFabClientAPI.StartPurchase' cannot be used like a method.
Its not making any sense to me.
I have also seen another unity/playfab/android but i am looking for steam
...........................................
Looking for Basic tutorial from beginning to end for steam IAP
Try to call the API like below:
PlayFabClientAPI.StartPurchase( new StartPurchaseRequest { CatalogVersion = "IAP1_0", Items = new List<ItemPurchaseRequest> { new ItemPurchaseRequest { ItemId = "BigBagOfGold", Quantity = 1, Annotation = "Purchased via in-game store" } } }, result =>{}, error =>{} );
Be aware that ItemPurchaseRequest is a class and cannot be used as a method.
2 People are following this question.