Why restore of the purchase doesn't work by in-app sales in the game on Android platform?

In the upper part of the picture there is a event constract. It opens the account selection form if the player is not logged in. I connected a “reed” to it and made a check. At the bottom of the picture, when the buy button is pressed, the item is assigned, which I made through “make”, the purchase is linked to “on success”, the restor is linked to “on failure”. Then I compare the player’s purchase number with the item number and if the player has purchased an item, the purchase should be restored.
In practice, having checked this scheme, the purchase in google play works, of which I am very happy. However, after reinstalling the game, the purchase is not restored.
Please advise me where I made a mistake or please propose some specific solutions that will help to solve this problem.
Thank you in advance.