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

Receipt Validation Local and Backend Both?

Discussion in 'Unity IAP' started by jGate99, Sep 30, 2021.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,936
    Hi there,

    I noticed 2 validation samples, one is for local and one is for backend.

    So my question is, Can i do both type of validations at once? For example i first test on local and if its a success, then i test on backend to be sure OR do you think i should completely skip and go backend direcly

    Please advise
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Up to you. Server side validation is more reliable, but why not do both? If local validation fails, then probably no need to hit the server.
     
    jGate99 likes this.
  3. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,936
    @JeffDUnity3D

    Thanks, one last question

    Validator require both
    GooglePlayTangle.Data(), AppleTangle.Data()

    My assumption is:
    AppleTangle is autoamtically inserted, so we dont hv to do anything here

    BUT
    GooglePlayTangle is inserted by using Recepit Validation Obfuscator

    is this correct?
     
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    That is correct!
     
    jGate99 likes this.