i am implementing in app purchases into a iOS application. I am using the server model (so all the in app items are stored on my server). The purchase model works like this:
- user buys a item in the application
- application sends the receipt-data to my server (receipt-data is a digitally signed chunk of data)
- the server then sends a verification to the apple server
- if the verification is successful the server returns data about the transaction
我先通过文件查询,但愿回答这些问题:
- can i validate that the receipt-data came from the apple store (checking the signiture or do i have to come up with a mechanism for that)?
- if a user buys a item that was removed from the store (due to an old cache) can i reject the purchase?
如果有任何这方面的经验,那将不胜感激。