Auto Update IAP Field: latest_receipt

When a user buys a subscription, I save the receipt on the completed transaction on the server along with the key to identify the user to whom the receipt belongs. When the application needs to check whether the subscription continues, it requests the server, the server checks the receipt from Apple and returns information to my application so that the subscription expires or not.

Now the question is:

When the response returns the latest_receipt/ field _info, the server should accept this receipt and replace the old receipt for future checks. What happens if there is a gap during the subscription period (for example, the user subscribed for 1 month, then canceled, then subscribed again) or the user changed the type of subscription (for example, from 1 month to 3 months)?

Will the original receipt still be checked and the latest_receipt/ field will be returned _info, or do I need to save the new receipt from the new transaction?

I am really confused about this automatic update problem right now, so I'm not even sure that my verification process is correct.

+3
source share
1 answer

, , , , -, .

( , ). , , ​​ , iTunes. .

, Apple (, , Apple docs).

+2

All Articles