[Solved] Amazon purchase receipt data.

What is the purchase receipt data format for Amazon receipts returned from Unity IAP?

It’s not listed in the Purchase Receipt Documentation.

Thanks.

This is a partial answer @MochiBits , sorry but I don’t have a sample Amazon receipt on hand.

However the general format for the Product.receipt field on Amazon is:

// Unity IAP `Product.receipt` contents for Amazon
{ 
    "Store": "AmazonApps", 
    "Payload": 
    {
        "receiptId": "Amazon receiptId", // String. From Amazon. Just id, not full.
        "userId": "Amazon userId", // String
        "isSandbox": false, // or true
    },
    "TransactionID" : "Amazon receiptId" // Same as Payload.receiptId. 
}

Thanks.

2 Likes

@nicholasr Sorry to be a little clueless here, but I am using the CrossPlatformValidator for Google/iOS, but need help implementing the portion for Amazon. Is there example code somewhere that I can look at?

Thanks in advance!

We’re using this for iOS, Google Play, and Amazon. We have it setup on our own EC2 machine. It works well.

2 Likes

@MochiBits Thanks, I’ll give it a look!