In-App purchase - Receipt validation - Expires date wrong

988 Views Asked by At

Goodmorning everyone ! I have a little question that I would like to ask you without going to waste an incident with Apple ...

In practice I am validating the receipt of payment for an in-app purchase, specifically a one-month subscription that unlocks some features of my app. I parse the json correctly and apparently it seems to work fine but this does not always happen! In fact it often happens that the expiration date that I go to read from the json is not correct as if the subscription was not included in the receipt and I fished only those of the day before or in any case the previous ones. This happens in sandbox and having checked the code and reviewed well, the parse of the document I could not find a solution because often the validation of the subscription is successful. I also searched online to see if it was a common problem but I did not find a solution or a discussion. My subscription does not include trial periods.

In the specific case this morning the first test was successful, but the validation was not valid. Checking the date shown was that of the previous day and then a previous subscription made yesterday. Once the subscription to the second test expired, the subscription was successful and also validated.

0

There are 0 best solutions below