The above question I found in FAQ in Apple's Tech Notes (QNo: 15). They gave an answer like this:
Use the sandbox URLhttps://sandbox.itunes.apple.com/verifyReceiptwhile testing your application in the sandbox and while your application is in review.
Use the production URLhttp://buy.itunes.apple.com/verifyReceiptonce your application is live in the App Store.
But in In-App Purchase Programming Guide (Verifying a Receipt with the App Store Section). Apple provides an url like this:
Post the JSON object to the App Store using an HTTP POST request. The URL for the store ishttps://buy.itunes.apple.com/verifyReceipt.
Note that first url is using http for live account for verifying In-App Purchase while second one is using https. Which one i should use? My app got rejected because server is not getting correct response, when it sends receipt to Apple. I am usinghttps://buy.itunes.apple.com/verifyReceiptfor verifying receipt.
。。。
验证应用内购买收据
本文探讨了在iOS应用中验证应用内购买收据时,使用HTTP还是HTTPS的问题。作者指出苹果官方文档中存在不一致的说明,并分享了一个案例,即使用HTTPS进行验证时遇到服务器响应问题导致应用被拒。

被折叠的 条评论
为什么被折叠?



