Receipt not found by appStoreReceiptURL in sandbox environment

In the Sandbox environment, when I purchased an in-app product, deleted the app and then reinstalled it,


When I try to retrieve a purchase receipt via appStoreReceiptURL, I get the following error:


code: -1100

error: The requested URL was not found on this server.



The function worked normally until October, but when I checked the problem recently, an error occurred.


How can I solve this problem?

Replies

You must first use either restoreCompletedTransaction (and get a call to updatedTransactions) or SKReceiptRefreshRequest to get a good receipt that contains the IAPs.

I don't think anything has changed since Oct, but to be sure, can you show the URL~ endpoint you're using for the sandbox?


Should be:

POST https://sandbox.itunes.apple.com/verifyReceipt



Not necessary in production, when testing via Xcode, be sure you refresh when requesting a receipt. Still no joy, try creating a new sandbox account.