Hi..
the following method returns a 500 internal server error
public static void PurchaseCurrencyPack (string receiptJson, string signature) { ValidateGooglePlayPurchaseRequest request = new ValidateGooglePlayPurchaseRequest () { ReceiptJson = receiptJson, Signature = signature }; PlayFabClientAPI.ValidateGooglePlayPurchase (request, (result) => { Debug.Log ("DEBUG Purchase Currency Pack"); }, (error) => { Debug.Log ("DEBUG Error PurchaseAnItem:"); Debug.Log ("DEBUG " + error.ErrorMessage); Debug.Log ("DEBUG " + error.ErrorDetails); Debug.Log ("DEBUG " + error.Error); }); }
Output:
08-22 21:59:18.951 4548 4597 I Unity : DEBUG 500: Internal Server Error 08-22 21:59:18.951 4548 4597 I Unity : DEBUG System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]] 08-22 21:59:18.951 4548 4597 I Unity : DEBUG InternalServerError
Actually i am trying to buy the product with a testaccount (so that it's for free, maybe that will not work?).
Best, Michael