Search Unity

[Solved] Amazon purchase receipt data.

Discussion in 'Unity IAP' started by MochiBits, Sep 14, 2016.

Thread Status:
Not open for further replies.
  1. MochiBits

    MochiBits

    Joined:
    Mar 11, 2014
    Posts:
    30
  2. nicholasr

    nicholasr

    Joined:
    Aug 15, 2015
    Posts:
    183
    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:

    Code (csharp):
    1.  
    2. // Unity IAP `Product.receipt` contents for Amazon
    3. {
    4.     "Store": "AmazonApps",
    5.     "Payload":
    6.     {
    7.         "receiptId": "Amazon receiptId", // String. From Amazon. Just id, not full.
    8.         "userId": "Amazon userId", // String
    9.         "isSandbox": false, // or true
    10.     },
    11.     "TransactionID" : "Amazon receiptId" // Same as Payload.receiptId.
    12. }
    13.  
     
  3. MochiBits

    MochiBits

    Joined:
    Mar 11, 2014
    Posts:
    30
    Thanks.
     
    nicholasr and erika_d like this.
  4. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
    @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!
     
  5. MochiBits

    MochiBits

    Joined:
    Mar 11, 2014
    Posts:
    30
    ap-unity and breban1 like this.
  6. breban1

    breban1

    Joined:
    Jun 7, 2016
    Posts:
    194
Thread Status:
Not open for further replies.