0 Replies
      Latest reply on Jan 7, 2019 11:40 PM by ianchenkuan
      ianchenkuan Level 1 Level 1 (0 points)


        I have set up IAP in my service and has been working properly until today.

        A few users complained that they failed to restore purchase.


        The workflow is as the following:

        1. fetch receipt from Apple when enter my payment view controller .

        2. encode the receipt and send it to my server when user click on `restore purchase`


        3. server decoded the receipt and call Apple's receipt verify api to validate the receipt, the payload format follows the format in documentation

        4. Apple send back a status code in the response with prefix 210, which is apparently refers to invalid receipt.

        I've read https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html#//apple_ref/doc/uid/TP40010573-CH104-SW2

        and still have no idea why is this happening.

        It works fine in sandbox environment and works for most of users who purchased and tried to restore purchase.

        Is there anything I am missing or misunderstanding ?

        Thank You!!