Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[Amazon App Store] Subscription Support

Discussion in 'Unity IAP' started by xLeo, Aug 6, 2021.

  1. xLeo

    xLeo

    Joined:
    Sep 21, 2010
    Posts:
    177
    Does anyone have any pointers on best practices of implementing Subscriptions through Amazon App Store?

    From my early tests, I noticed that it's possible to purchase a subscription, but I don't know the proper way (if there is any) to:
    • Validate Receipts (I suppose it will be possible to parse the receipt obtained from Unity IAP callback and then validate remotely using this method);
    • Get Subscription metadata before purchasing (trial period, billing period, etc);
    Everything else seems to work just fine.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Your approach looks correct, if it's working for you. We still have work to do to properly support Subscriptions on Amazon.
     
    xLeo likes this.
  3. xLeo

    xLeo

    Joined:
    Sep 21, 2010
    Posts:
    177
    @JeffDUnity3D Is it possible to get the raw product data in a JSON format or something like that?

    It would be nice to have this feature to create in-house implementations of store-specific stuff.
     
  4. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    We will keep that in mind, if it is available via the Amazon store API.
     
    xLeo likes this.
  5. xLeo

    xLeo

    Joined:
    Sep 21, 2010
    Posts:
    177
    Another Amazon-related issue: the field "IsSandbox" is not populated correctly on the Unity receipt.
    I have not yet tested if this happens on other platforms as well.

    Check the full Unity Receipt below, note that "isSandbox" is true on the Amazon App Store receipt.
    Code (none):
    1. {
    2.    "com.explot.gouda.subs": {
    3.       "PurchaseDate": "2021-08-06T18:39:42.95868Z",
    4.       "ValidationStatus": 4,
    5.       "SkuId": "com.explot.gouda.subs",
    6.       "TransactionId": "q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmpJzs_VS60oyMkv0UvPL01J1CsuTSoGypUoWRnpKKUAVRiaGVkYmZsamhubmhgBZRKVrEqKSlN1lNKVrNISc4qBrDSIUC0A",
    7.       "Receipt": {
    8.          "Payload": "{\"receiptId\":\"q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmpJzs_VS60oyMkv0UvPL01J1CsuTSoGypUoWRnpKKUAVRiaGVkYmZsamhubmhgBZRKVrEqKSlN1lNKVrNISc4qBrDSIUC0A\",\"userId\":\"l3HL7XppEMhrOGDnur9-ulvqomrSg6qyODKmah76lJU=\",\"isSandbox\":true,\"receiptJson\":{\"receiptId\":\"q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmpJzs_VS60oyMkv0UvPL01J1CsuTSoGypUoWRnpKKUAVRiaGVkYmZsamhubmhgBZRKVrEqKSlN1lNKVrNISc4qBrDSIUC0A\",\"sku\":\"com.explot.gouda.subs\",\"itemType\":\"SUBSCRIPTION\",\"purchaseDate\":\"Fri Aug 06 15:39:33 GMT-03:00 2021\"}}",
    9.          "Store": "AmazonApps",
    10.          "TransactionID": "q1YqVbJSyjH28DGPKChw9c0o8nd3ySststQtzSkrzM8tCk43K6z0d_HOTcwwN8vxCrVV0lEqBmpJzs_VS60oyMkv0UvPL01J1CsuTSoGypUoWRnpKKUAVRiaGVkYmZsamhubmhgBZRKVrEqKSlN1lNKVrNISc4qBrDSIUC0A"
    11.       },
    12.       "SkuType": 1,
    13.       "IsSandbox": false,
    14.       "Store": "AmazonAppStore",
    15.       "LocalizedPrice": 0,
    16.       "IsoCurrencyCode": null,
    17.       "OwnerId": null
    18.    }
    19. }
     
    JeffDUnity3D likes this.
  6. MidnightGameDeveloper

    MidnightGameDeveloper

    Joined:
    Apr 26, 2014
    Posts:
    114
    Any news on that topic? Are subscription on amazon supported within Unity IAP?
     
  7. Arnaud_Gorain

    Arnaud_Gorain

    Unity Technologies

    Joined:
    Jun 28, 2022
    Posts:
    166
    Hi @MidnightGameDeveloper,
    Amazon subscription is not supported yet, and is not planned to be within 2023.

    Feel free to reach out if you have any questions!