verifying iOS in app purchase receipt with C#

后端 未结 4 897
误落风尘
误落风尘 2021-01-31 21:31

I am verifying my ios in app purchase receipt on my server using C# web service

I got receipt as string by doing below in Xcode:



        
4条回答
  •  别跟我提以往
    2021-01-31 21:58

    For managing subscriptions, @Jerry Naing's answer also requires the provision of your shared secret (can be retrieved/generated from iTunes Connect). Easiest way to include this is just to add an additional property in the line defining the json var.

    var json = new JObject(new JProperty("receipt-data", receiptData), new JProperty("password", "put_your_shared_secret_here")).ToString();
    

    Failing to provide the shared secret will result in a 21004 status response.

提交回复
热议问题