Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Does CrossPlatformValidator contact stores with receipt and API key?

Discussion in 'Unity IAP' started by tokyo-ramen, Mar 14, 2019.

  1. tokyo-ramen

    tokyo-ramen

    Joined:
    Dec 4, 2018
    Posts:
    16
    Hi,

    When you do receipt validation using CrossPlatformValidator the documentation says it does validation locally, but does that mean it just do like hash validation or does it contact google store or ios store with API key and receipt ID and check if the receipt is valid?

    Thanks for advance.
     
  2. tokyo-ramen

    tokyo-ramen

    Joined:
    Dec 4, 2018
    Posts:
    16
    @erika_d in this post below you mentioned
    Does that mean it that unity contacts google play developer api (below) and do verification based on that?
    https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/get

    Is that mentioned anywhere in the unity documentation? How does unity do that 'local' validation?

    Thanks for advance.
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    No, local validation does not contact the stores. We do a local CRC check of your Google API key that you provide, along with the receipt response. On iOS, it's built into the API library.