Grogshotgames
started a topic on Mon, 03 August 2015 at 8:46 AM
Hi,
Everytime I try to purchase an item with real money and validate it with Google Play (ValidateGooglePlayPurchase), it returns the error "InvalidReceipt".
I'm using OpenIAB to make the purchases and everything seems correct on that side. Here's a description on how I handle the proccess to make the purchases:
- Initialize OpenIAB
- Buy an item with openiab's purchase function: OpenIAB.purchaseProduct(itemID); This purchase function returns a Purchase which contains all the necesary info por validating the purchase with google.
- Execute the next piece of code:
ValidateGooglePlayPurchaseRequest request = new ValidateGooglePlayPurchaseRequest();
request.ReceiptJson = purchase.OriginalJson;
request.Signature = purchase.Signature;
PlayFabClientAPI.ValidateGooglePlayPurchase(request, OnAndroidSuccessfulPurchase, OnAndroidFailedPurchase);
This returns the "InvalidReceipt" error which I mentioned before.
I have debugged the information that OpenIAB's purchase gave me and everything seems ok, including the OriginalJson and Signature.
Is there something that I can be missing out?
A possible problem could be the price.
RM as I read in the docs, is in $ (1,99), while I'm making my payments in ? (2,41) and my catalog's Json doesn't have reference of this...I don't see any option for adding this neither on the Playfab's Game Manager.