AppStore in-App Purchase Receipt Verification Issues

后端 未结 3 509
忘掉有多难
忘掉有多难 2020-12-29 13:53

I know there have been quite a few posts on this but none seem to address the issues we\'re running into. So far I think I have everything setup correctly as specified in th

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 14:42

    If I read the documentation correctly, you're on the wrong track. The receipt that you send for verification is that chunk of data returned by the transactionReceipt property. You shouldn't care what it decodes to, or if it decodes to anything at all. You just base64-encode it, put it into a json object as the value for a key "receipt-data", and post that json object to Apple.

    When you get the response back from Apple, that is what is supposed to contain the receipt data in json format.

提交回复
热议问题