Transaction ID that does not appear in application to application

I work with renewable subscriptions. When the application successfully completed the transaction, it sends a receipt to our server to verify it and verify that the last transaction identifier exists in the receipt.

From time to time, our server returns an error saying that the transaction identifier was not found in the receipt. I confirmed that locally, in the application. Even after updating the check, sometimes the transaction identifier cannot be found.

In addition, the purchase succeeded because, trying to buy the same subscription again, an iOS pop-up window opens saying that the subscription is currently active.

Obviously, this strange behavior occurs in a sandbox environment. Also note that I use up to three test users switching between them.

Anyone having a similar problem?

Any ideas on what's going on?

+4
source share
1 answer

Over the past 2 days, I tested our code with a single iTunes test user, and I no longer ran into this problem. Not even once.

I'm pretty sure the problem is with switching between users testing iTunes in a sandbox environment. One way or another, in this case, the receipt of the application is not always consistent.

It is impossible to prove it: (

0
source

Source: https://habr.com/ru/post/1527569/


All Articles